Update python-app.yml

This commit is contained in:
Yonokid
2024-08-21 02:03:53 -04:00
parent ec8e1fcfcc
commit ce4a9b12c2

View File

@@ -11,29 +11,42 @@ permissions:
jobs:
build:
# Windows is currently the only platform this action supports
runs-on: windows-latest
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
# Check-out repository
- uses: actions/checkout@v4
- name: Check-out repository
uses: actions/checkout@v4
# Setup Python
- uses: actions/setup-python@v5
- name: 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
cache: "pip"
cache-dependency-path: |
**/requirements*.txt
# Build python script into a stand-alone exe
- uses: Nuitka/Nuitka-Action@main
- name: Install Dependencies
run: |
pip install -r requirements.txt -r requirements-dev.txt
- name: Build Executable
uses: Nuitka/Nuitka-Action@main
with:
nuitka-version: main
script-name: main.py
onefile: true
standalone: true
enable-plugins: raylib
# Uploads artifact
- name: Upload Artifact
- name: Upload Artifacts
uses: actions/upload-artifact@v3
with:
name: exe
path: build/main.exe
name: ${{ runner.os }} Build
path: |
build/*.exe
build/*.bin
build/*.app/**/*