mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 11:40:13 +01:00
Update python-app.yml
This commit is contained in:
39
.github/workflows/python-app.yml
vendored
39
.github/workflows/python-app.yml
vendored
@@ -11,29 +11,42 @@ permissions:
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
# Windows is currently the only platform this action supports
|
strategy:
|
||||||
runs-on: windows-latest
|
matrix:
|
||||||
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
# Check-out repository
|
- name: Check-out repository
|
||||||
- uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
# Setup Python
|
- name: Setup Python
|
||||||
- uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: "3.11" # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
python-version: "3.11" # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
||||||
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
|
architecture: "x64" # optional x64 or x86. Defaults to x64 if not specified
|
||||||
|
cache: "pip"
|
||||||
|
cache-dependency-path: |
|
||||||
|
**/requirements*.txt
|
||||||
|
|
||||||
# Build python script into a stand-alone exe
|
- name: Install Dependencies
|
||||||
- uses: Nuitka/Nuitka-Action@main
|
run: |
|
||||||
|
pip install -r requirements.txt -r requirements-dev.txt
|
||||||
|
|
||||||
|
- name: Build Executable
|
||||||
|
uses: Nuitka/Nuitka-Action@main
|
||||||
with:
|
with:
|
||||||
nuitka-version: main
|
nuitka-version: main
|
||||||
script-name: main.py
|
script-name: main.py
|
||||||
onefile: true
|
standalone: true
|
||||||
|
enable-plugins: raylib
|
||||||
|
|
||||||
# Uploads artifact
|
- name: Upload Artifacts
|
||||||
- name: Upload Artifact
|
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: exe
|
name: ${{ runner.os }} Build
|
||||||
path: build/main.exe
|
path: |
|
||||||
|
build/*.exe
|
||||||
|
build/*.bin
|
||||||
|
build/*.app/**/*
|
||||||
|
|||||||
Reference in New Issue
Block a user