ne marchera probablement pas sur gitea
This commit is contained in:
38
.gitea/workflows/build.yml
Normal file
38
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,38 @@
|
||||
name: BinGen
|
||||
run-name: Generate a exe file from the python script
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
Validate:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- name: Checkout repo
|
||||
uses: actions/checkout@v3
|
||||
|
||||
- name: Setup Python 3.11
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: 3.11
|
||||
|
||||
- name: install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install pyinstaller colorama
|
||||
|
||||
- name: Builde executale with pyinstaller
|
||||
run: |
|
||||
pyinstaller --onefile jeu.py
|
||||
|
||||
- name: Archive executable
|
||||
run: |
|
||||
Compress-Archive -Path dist\jeu.exe -DestinationPath jeu_windows.zip
|
||||
|
||||
- name: Upload Artifact
|
||||
uses: actions/upload-artifact@v3
|
||||
with:
|
||||
name: escape-game-windows-exe
|
||||
path: jeu_windows.zip
|
@@ -63,4 +63,8 @@ print(
|
||||
+ Style.BRIGHT
|
||||
+ "Détection de gaz toxiques : Néant "
|
||||
)
|
||||
sleep(rand(0.7, 1.7))
|
||||
print("Suspention de la procédure de sécurité")
|
||||
sleep(rand(0.7, 1.7))
|
||||
print("Mise en veille des capteurs")
|
||||
sleep(5)
|
||||
|
Reference in New Issue
Block a user