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