Files
cmd-alexandra-toxicity/.gitea/workflows/build.yml
Simon d3d73ba029
Some checks failed
BinGen / Build (push) Failing after 1m24s
ci: Remplace pyinstaller pour nuitka
2025-07-09 12:24:43 +02:00

45 lines
1.0 KiB
YAML

name: BinGen
run-name: Generate a exe file from the python script
on:
push:
branches:
- main
jobs:
Build:
runs-on: ubuntu-latest
steps:
- name: Charger le dépôt
uses: actions/checkout@v4
- name: Installer Python
uses: actions/setup-python@v5
with:
python-version: 3.11
- 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 nuitka colorama
- name: Compiler l'executable
run: |
nuitka \
--mingw64 \
--onefile \
controleur_de_gaz.py
- name: Archive executable
run: |
cd /workspace/Simon/cmd-alexandra-toxicity/dist
zip jeu_windows.zip ./controleur_de_gaz.exe
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: escape-game-windows-exe
path: jeu_windows.zip