-
Notifications
You must be signed in to change notification settings - Fork 0
46 lines (37 loc) · 1.18 KB
/
build_release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
name: Build and Release
on:
push:
branches:
- main # ou la branche de votre choix
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.11 # Utilisation de Python 3.11
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt # Utilisez le fichier requirements.txt unifié
- name: Additional Setup for Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install python3-pyqt5.qtsvg python3-opengl libgirepository1.0-dev # Installer le paquet requis pour Ubuntu
pip install -r requirements-Linux.txt
- name: Install PyInstaller
run: pip install pyinstaller # Installation de PyInstaller
- name: Build with PyInstaller
run: pyinstaller main.spec
- name: Upload Artifacts
uses: actions/upload-artifact@v2
with:
name: ${{ matrix.os }}-binary
path: dist/*