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
|
- name: Installer Nuitka et MinGW
|
||||||
run: |
|
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
|
python -m pip install --upgrade pip
|
||||||
pip install nuitka colorama
|
pip install pyinstaller colorama
|
||||||
|
|
||||||
- name: Compiler l'executable
|
- name: Execute PyInstaller dans Docker
|
||||||
run: |
|
run: |
|
||||||
CC=x86_64-w64-mingw32-gcc \
|
docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows \
|
||||||
CXX=x86_64-w64-mingw32-g++ \
|
"pyinstaller --onefile /src/controleur_de_gaz.py"
|
||||||
nuitka \
|
|
||||||
--mingw64 \
|
|
||||||
--onefile \
|
|
||||||
controleur_de_gaz.py
|
|
||||||
|
|
||||||
- name: Archive executable
|
- name: Archive executable
|
||||||
run: |
|
run: |
|
||||||
zip jeu_windows.zip ./controleur_de_gaz.exe
|
zip jeu_windows.zip ./dist/controleur_de_gaz.exe
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
|
Reference in New Issue
Block a user