Files
PyTaiko/.github/workflows/python-app.yml
2025-07-26 17:17:01 -04:00

56 lines
1.8 KiB
YAML

name: PyTaiko
on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
permissions:
contents: read
jobs:
build:
strategy:
matrix:
os: [macos-latest, ubuntu-22.04, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Check-out repository
uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Setup Python
run: uv python install
- name: Install Dependencies
run: |
uv sync
- name: Install Nuitka
run: |
uv add nuitka
- name: Build Executable
run: |
uv run nuitka --mode=app --include-module=raylib,moviepy,numpy,sounddevice,soundfile,tomlkit --noinclude-setuptools-mode=nofollow --noinclude-IPython-mode=nofollow --assume-yes-for-downloads PyTaiko.py
- name: Upload Artifacts
uses: actions/upload-artifact@v4
with:
name: PyTaiko-${{ runner.os }}-${{ runner.arch }}
path: |
Graphics/*
Sounds/*
Videos/*
Songs/*
config.toml
*.exe
*.bin
*.app/**/*
- name: Upload Zip
uses: softprops/action-gh-release@v2
if: github.ref == 'refs/heads/master'
with:
files: PyTaiko-${{ runner.os }}-${{ runner.arch }}.zip
name: "PyTaiko [Latest Commit]"
tag_name: "LatestCommit"
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}