Skip to content

Update GitHub Actions workflow #2

Update GitHub Actions workflow

Update GitHub Actions workflow #2

Workflow file for this run

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 for Ubuntu
if: startsWith(matrix.os, 'ubuntu')
run: |
sudo apt-get update
sudo apt-get install python3-pyqt5.qtsvg
python -m pip install --upgrade pip
pip install -r requirements-linux.txt # Utilisez votre fichier requirements-linux.txt
- name: Install Dependencies for Windows
if: startsWith(matrix.os, 'windows')
run: |
python -m pip install --upgrade pip
pip install -r requirements-windows.txt # Utilisez votre fichier requirements-windows.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/*