Skip to content

Create build-pid-sim-app.yml #1

Create build-pid-sim-app.yml

Create build-pid-sim-app.yml #1

name: Build EXE
on:
push:
branches: [ "main" ]
jobs:
build:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install poetry
poetry install
- name: Install PyInstaller
run: |
pip install pyinstaller
- name: Build executable with PyInstaller
run: |
pyinstaller --onefile --name pid-sim gui/main.py
- name: Upload artifact
uses: actions/upload-artifact@v3
with:
name: pid-sim.exe
path: dist\pid-sim.exe