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:
41
.github/workflows/python-app.yml
vendored
41
.github/workflows/python-app.yml
vendored
@@ -10,23 +10,32 @@ permissions:
|
|||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
|
||||||
|
|
||||||
runs-on: ubuntu-latest
|
build:
|
||||||
|
# Windows is currently the only platform this action supports
|
||||||
|
runs-on: windows-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v4
|
|
||||||
- name: Set up Python 3.11
|
# Check-out repository
|
||||||
uses: actions/setup-python@v3
|
- uses: actions/checkout@v4
|
||||||
with:
|
|
||||||
python-version: "3.11"
|
# Setup Python
|
||||||
- name: Install dependencies
|
- uses: actions/setup-python@v5
|
||||||
run: |
|
with:
|
||||||
python -m pip install --upgrade pip
|
python-version: '3.11' # Version range or exact version of a Python version to use, using SemVer's version range syntax
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified
|
||||||
- name: Build executables or extension modules from Python projects
|
|
||||||
# Build python script into a stand-alone exe
|
# Build python script into a stand-alone exe
|
||||||
- uses: Nuitka/Nuitka-Action@main
|
- uses: Nuitka/Nuitka-Action@main
|
||||||
with:
|
with:
|
||||||
nuitka-version: main
|
nuitka-version: main
|
||||||
script-name: main.py
|
script-name: main.py
|
||||||
|
onefile: true
|
||||||
|
|
||||||
|
# Uploads artifact
|
||||||
|
- name: Upload Artifact
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: exe
|
||||||
|
path: build/PyTaiko.exe
|
||||||
|
|||||||
Reference in New Issue
Block a user