ci: Remplace pyinstaller pour nuitka
Some checks failed
BinGen / Build (push) Failing after 1m24s

This commit is contained in:
2025-07-09 12:24:43 +02:00
parent a362c637de
commit d3d73ba029
2 changed files with 24 additions and 11 deletions

View File

@@ -7,25 +7,30 @@ on:
- main - main
jobs: jobs:
Validate: Build:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout repo - name: Charger le dépôt
uses: actions/checkout@v3 uses: actions/checkout@v4
- name: Setup Python 3.11 - name: Installer Python
uses: actions/setup-python@v4 uses: actions/setup-python@v5
with: with:
python-version: 3.11 python-version: 3.11
- name: install dependencies - name: Installer Nuitka et MinGW
run: | run: |
sudo apt update
sudo apt install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
python -m pip install --upgrade pip python -m pip install --upgrade pip
pip install pyinstaller colorama pip install nuitka colorama
- name: Build executable with pyinstaller - name: Compiler l'executable
run: | run: |
pyinstaller --onefile controleur_de_gaz.py nuitka \
--mingw64 \
--onefile \
controleur_de_gaz.py
- name: Archive executable - name: Archive executable
run: | run: |
@@ -33,7 +38,7 @@ jobs:
zip jeu_windows.zip ./controleur_de_gaz.exe zip jeu_windows.zip ./controleur_de_gaz.exe
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v3 uses: actions/upload-artifact@v4
with: with:
name: escape-game-windows-exe name: escape-game-windows-exe
path: jeu_windows.zip path: jeu_windows.zip

8
.gitignore vendored
View File

@@ -33,6 +33,7 @@ $RECYCLE.BIN/
# Icon must end with two \r # Icon must end with two \r
Icon Icon
# Thumbnails # Thumbnails
._* ._*
@@ -67,3 +68,10 @@ Temporary Items
# .nfs files are created when an open file is removed but is still being accessed # .nfs files are created when an open file is removed but is still being accessed
.nfs* .nfs*
# binaries and compilation artifacts
*.dist
*.bin
*.exe
*.build
*.onefile-build