This commit is contained in:
@@ -7,25 +7,30 @@ on:
|
|||||||
- main
|
- main
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
Validate:
|
Build:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Charger le dépôt
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Setup Python 3.11
|
- name: Installer Python
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: 3.11
|
python-version: 3.11
|
||||||
|
|
||||||
- name: install dependencies
|
- name: Installer Nuitka et MinGW
|
||||||
run: |
|
run: |
|
||||||
|
sudo apt update
|
||||||
|
sudo apt install -y gcc-mingw-w64-x86-64 g++-mingw-w64-x86-64
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
pip install pyinstaller colorama
|
pip install nuitka colorama
|
||||||
|
|
||||||
- name: Build executable with pyinstaller
|
- name: Compiler l'executable
|
||||||
run: |
|
run: |
|
||||||
pyinstaller --onefile controleur_de_gaz.py
|
nuitka \
|
||||||
|
--mingw64 \
|
||||||
|
--onefile \
|
||||||
|
controleur_de_gaz.py
|
||||||
|
|
||||||
- name: Archive executable
|
- name: Archive executable
|
||||||
run: |
|
run: |
|
||||||
@@ -33,7 +38,7 @@ jobs:
|
|||||||
zip jeu_windows.zip ./controleur_de_gaz.exe
|
zip jeu_windows.zip ./controleur_de_gaz.exe
|
||||||
|
|
||||||
- name: Upload Artifact
|
- name: Upload Artifact
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: escape-game-windows-exe
|
name: escape-game-windows-exe
|
||||||
path: jeu_windows.zip
|
path: jeu_windows.zip
|
||||||
|
10
.gitignore
vendored
10
.gitignore
vendored
@@ -31,7 +31,8 @@ $RECYCLE.BIN/
|
|||||||
.LSOverride
|
.LSOverride
|
||||||
|
|
||||||
# Icon must end with two \r
|
# Icon must end with two \r
|
||||||
Icon
|
Icon
|
||||||
|
|
||||||
|
|
||||||
# Thumbnails
|
# Thumbnails
|
||||||
._*
|
._*
|
||||||
@@ -67,3 +68,10 @@ Temporary Items
|
|||||||
# .nfs files are created when an open file is removed but is still being accessed
|
# .nfs files are created when an open file is removed but is still being accessed
|
||||||
.nfs*
|
.nfs*
|
||||||
|
|
||||||
|
# binaries and compilation artifacts
|
||||||
|
|
||||||
|
*.dist
|
||||||
|
*.bin
|
||||||
|
*.exe
|
||||||
|
*.build
|
||||||
|
*.onefile-build
|
Reference in New Issue
Block a user