mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
Update python-app.yml
This commit is contained in:
78
.github/workflows/python-app.yml
vendored
78
.github/workflows/python-app.yml
vendored
@@ -1,52 +1,52 @@
|
|||||||
name: PyTaiko
|
name: PyTaiko
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
pull_request:
|
pull_request:
|
||||||
branches: ["main"]
|
branches: ["main"]
|
||||||
|
|
||||||
permissions:
|
permissions:
|
||||||
contents: read
|
contents: read
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest, windows-latest]
|
os: [macos-latest, ubuntu-latest, windows-latest]
|
||||||
|
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Check-out repository
|
- name: Check-out repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: 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: "pip"
|
||||||
cache-dependency-path: |
|
cache-dependency-path: |
|
||||||
**/requirements*.txt
|
**/requirements*.txt
|
||||||
|
|
||||||
- name: Install Dependencies
|
- name: Install Dependencies
|
||||||
run: |
|
run: |
|
||||||
pip install -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: Build Executable
|
- name: Build Executable
|
||||||
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
|
||||||
standalone: true
|
standalone: true
|
||||||
include-module: raylib,cv2
|
include-module: raylib,cv2
|
||||||
|
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: ${{ runner.os }} Build
|
name: ${{ runner.os }} Build
|
||||||
path: |
|
path: |
|
||||||
build/*.exe
|
build/*.exe
|
||||||
build/*.bin
|
build/*.bin
|
||||||
build/*.app/**/*
|
build/*.app/**/*
|
||||||
|
|||||||
Reference in New Issue
Block a user