From 45b29dea9c4fd9c90434ac9eef39fd3b7364ec15 Mon Sep 17 00:00:00 2001 From: Yonokid <37304577+Yonokid@users.noreply.github.com> Date: Thu, 12 Jun 2025 13:18:59 -0400 Subject: [PATCH] Create python-app2.yml --- .github/workflows/python-app2.yml | 54 +++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) create mode 100644 .github/workflows/python-app2.yml diff --git a/.github/workflows/python-app2.yml b/.github/workflows/python-app2.yml new file mode 100644 index 0000000..33e10a6 --- /dev/null +++ b/.github/workflows/python-app2.yml @@ -0,0 +1,54 @@ +name: PyTaiko +on: + push: + branches: ["main"] + pull_request: + branches: ["main"] +permissions: + contents: read +jobs: + build: + strategy: + matrix: + os: [macos-latest, ubuntu-latest, 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: false + - name: Setup Python + run: uv python install 3.12 + - name: Clear UV cache + run: | + uv cache clean + - name: Install Dependencies + run: | + uv sync --locked + - name: Install Nuitka + run: | + uv add nuitka + - name: Clear Build Cache + run: | + rm -rf ~/.nuitka + rm -rf PyTaiko.dist + rm -rf PyTaiko.build + shell: bash + continue-on-error: true + - name: Build Executable + run: | + uv run nuitka --mode=app --remove-output --output-dir=. --include-module=raylib,moviepy,numpy,sounddevice,soundfile,tomlkit --noinclude-setuptools-mode=nofollow --noinclude-IPython-mode=nofollow PyTaiko.py + - name: Upload Artifacts + uses: actions/upload-artifact@v4 + with: + name: PyTaiko ${{ runner.os }} Build + path: | + Graphics/* + Sounds/* + Videos/* + config.toml + *.exe + *.bin + *.app/**/*