Some checks failed
BinGen / Build (push) Has been cancelled
devrais corriger l'erreur "Using OS specific option '--mingw64' has no effect on Linux."
47 lines
1.1 KiB
YAML
47 lines
1.1 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 patchelf
|
|
|
|
python -m pip install --upgrade pip
|
|
pip install nuitka colorama
|
|
|
|
- name: Compiler l'executable
|
|
run: |
|
|
CC=x86_64-w64-mingw32-gcc \
|
|
CXX=x86_64-w64-mingw32-g++ \
|
|
nuitka \
|
|
--mingw64 \
|
|
--onefile \
|
|
controleur_de_gaz.py
|
|
|
|
- name: Archive executable
|
|
run: |
|
|
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
|