Compare commits

...

3 Commits

Author SHA1 Message Date
b5253ad093 ci: retire un peu de docs
Some checks failed
BinGen / Build (push) Failing after 2m20s
2025-07-09 22:36:18 +02:00
7f1ea569a3 ci: Ajoute apt a l'étape 2
Some checks failed
BinGen / Build (push) Failing after 2m18s
2025-07-09 22:18:37 +02:00
3989f6f001 ci: change pour pyinstall dans wine 2025-07-09 22:03:39 +02:00

View File

@@ -5,6 +5,7 @@ on:
push: push:
branches: branches:
- main - main
- build-ci
jobs: jobs:
Build: Build:
@@ -13,24 +14,33 @@ jobs:
- name: Charger le dépôt - name: Charger le dépôt
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Installer Python - name: Installer Wine, wget, unzip
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Installer Nuitka et MinGW
run: | run: |
python -m pip install --upgrade pip sudo dpkg --add-architecture i386
pip install pyinstaller colorama sudo apt update
sudo apt install -y wine64 wine32 unzip wget
- name: Execute PyInstaller dans Docker - name: Initialiser l'environnement Windows
run: | run: |
docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows \ mkdir -p wine-python
"pyinstaller --onefile /src/controleur_de_gaz.py" cd wine-python
wget https://www.python.org/ftp/python/3.11.8/python-3.11.8-amd64.exe -O python-installer.exe
wine python-installer.exe /quiet InstallAllUsers=1 PrependPath=1 Include_pip=1
wine 'C:\Program Files\Python311\python.exe' --version
- name: Installer PyInstaller
run: |
wine 'C:\Program Files\Python311\python.exe' -m pip install --upgrade pip
wine 'C:\Program Files\Python311\python.exe' -m pip install pyinstaller
- name: Build executable with pyinstaller
run: |
pyinstaller --onefile controleur_de_gaz.py
- name: Archive executable - name: Archive executable
run: | run: |
zip jeu_windows.zip ./dist/controleur_de_gaz.exe cd /workspace/Simon/cmd-alexandra-toxicity/dist
zip jeu_windows.zip ./controleur_de_gaz.exe
- name: Upload Artifact - name: Upload Artifact
uses: actions/upload-artifact@v4 uses: actions/upload-artifact@v4