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: | python -m pip install --upgrade pip pip install pyinstaller colorama - name: Execute PyInstaller dans Docker run: | docker run --rm -v "$PWD":/src cdrx/pyinstaller-windows \ "pyinstaller --onefile /src/controleur_de_gaz.py" - name: Archive executable run: | zip jeu_windows.zip ./dist/controleur_de_gaz.exe - name: Upload Artifact uses: actions/upload-artifact@v4 with: name: escape-game-windows-exe path: jeu_windows.zip