diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index da52b4e..4ccfb03 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -10,23 +10,32 @@ permissions: contents: read jobs: - build: - runs-on: ubuntu-latest + build: + # Windows is currently the only platform this action supports + runs-on: windows-latest steps: - - uses: actions/checkout@v4 - - name: Set up Python 3.11 - uses: actions/setup-python@v3 - with: - python-version: "3.11" - - name: Install dependencies - run: | - python -m pip install --upgrade pip - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - - name: Build executables or extension modules from Python projects + + # Check-out repository + - uses: actions/checkout@v4 + + # Setup Python + - uses: actions/setup-python@v5 + with: + 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 + # Build python script into a stand-alone exe - - uses: Nuitka/Nuitka-Action@main - with: - nuitka-version: main - script-name: main.py + - uses: Nuitka/Nuitka-Action@main + with: + nuitka-version: main + script-name: main.py + onefile: true + + # Uploads artifact + - name: Upload Artifact + uses: actions/upload-artifact@v3 + with: + name: exe + path: build/PyTaiko.exe