mirror of
https://github.com/Yonokid/PyTaiko.git
synced 2026-02-04 19:50:12 +01:00
Update main.yml
This commit is contained in:
31
.github/workflows/main.yml
vendored
31
.github/workflows/main.yml
vendored
@@ -37,17 +37,30 @@ jobs:
|
|||||||
rm -rf PyTaiko.build
|
rm -rf PyTaiko.build
|
||||||
shell: bash
|
shell: bash
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Debug - Check file contents
|
|
||||||
run: |
|
|
||||||
echo "=== Contents of libs/song_hash.py ==="
|
|
||||||
cat libs/song_hash.py | head -20
|
|
||||||
echo "=== Searching for pandas ==="
|
|
||||||
grep -n "pandas" . -r --exclude-dir=.git
|
|
||||||
echo "=== Python files with imports ==="
|
|
||||||
find . -name "*.py" -exec grep -l "import pandas\|from pandas" {} \;
|
|
||||||
- name: Build Executable
|
- name: Build Executable
|
||||||
run: |
|
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
|
# Create completely isolated environment
|
||||||
|
mkdir -p isolated-build
|
||||||
|
cp -r . isolated-build/
|
||||||
|
cd isolated-build
|
||||||
|
|
||||||
|
# Remove all Python cache
|
||||||
|
find . -name "*.pyc" -delete
|
||||||
|
find . -name "__pycache__" -type d -exec rm -rf {} + || true
|
||||||
|
|
||||||
|
# Build with maximum isolation
|
||||||
|
uv run nuitka \
|
||||||
|
--mode=app \
|
||||||
|
--remove-output \
|
||||||
|
--output-dir=../build-output \
|
||||||
|
--no-cached-results \
|
||||||
|
--disable-cache=all \
|
||||||
|
--python-flag=isolated \
|
||||||
|
--temp-dir=../nuitka-temp \
|
||||||
|
--include-module=raylib,moviepy,numpy,sounddevice,soundfile,tomlkit \
|
||||||
|
--noinclude-setuptools-mode=nofollow \
|
||||||
|
--noinclude-IPython-mode=nofollow \
|
||||||
|
PyTaiko.py
|
||||||
- name: Upload Artifacts
|
- name: Upload Artifacts
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
|
|||||||
Reference in New Issue
Block a user