Compare commits
2 Commits
main
...
7f1ea569a3
Author | SHA1 | Date | |
---|---|---|---|
7f1ea569a3 | |||
3989f6f001 |
@@ -5,6 +5,7 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- build-ci
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Build:
|
Build:
|
||||||
@@ -13,24 +14,38 @@ 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
|
||||||
|
|
||||||
|
# Télécharger l'installeur MSI de Python
|
||||||
|
wget https://www.python.org/ftp/python/3.11.8/python-3.11.8-amd64.exe -O python-installer.exe
|
||||||
|
|
||||||
|
# Installer Python via Wine
|
||||||
|
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
|
||||||
|
Reference in New Issue
Block a user