ci: Remplacer Nuitka par docker pyinstaller-windows
Some checks failed
BinGen / Build (push) Failing after 48s
Some checks failed
BinGen / Build (push) Failing after 48s
This commit is contained in:
@@ -20,24 +20,17 @@ jobs:
|
||||
|
||||
- name: Installer Nuitka et MinGW
|
||||
run: |
|
||||
sudo apt update
|
||||
sudo apt install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64 patchelf
|
||||
|
||||
python -m pip install --upgrade pip
|
||||
pip install nuitka colorama
|
||||
pip install pyinstaller colorama
|
||||
|
||||
- name: Compiler l'executable
|
||||
- name: Execute PyInstaller dans Docker
|
||||
run: |
|
||||
CC=x86_64-w64-mingw32-gcc \
|
||||
CXX=x86_64-w64-mingw32-g++ \
|
||||
nuitka \
|
||||
--mingw64 \
|
||||
--onefile \
|
||||
controleur_de_gaz.py
|
||||
docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows \
|
||||
"pyinstaller --onefile /src/controleur_de_gaz.py"
|
||||
|
||||
- name: Archive executable
|
||||
run: |
|
||||
zip jeu_windows.zip ./controleur_de_gaz.exe
|
||||
zip jeu_windows.zip ./dist/controleur_de_gaz.exe
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
|
Reference in New Issue
Block a user