Windows Release #49
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Windows Release | |
on: | |
push: | |
tags: | |
- v* | |
workflow_dispatch: | |
jobs: | |
release: | |
runs-on: windows-latest | |
strategy: | |
matrix: | |
arch: [x64, ] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
architecture: ${{ matrix.arch }} | |
- name: Install dependencies and pyinstall | |
run: | | |
python3 -m venv venv | |
.\venv\Scripts\activate | |
python3 -m pip install pip==24.1 | |
python3 -m pip install -U setuptools setuptools-scm | |
python3 -m pip install -r requirements.txt | |
python3 -m pip install PyInstaller==6.8.0 | |
python3 -m pip install -U PyQt6-sip | |
python3 -m pip install -U PyQt6 | |
- name: Build binary | |
run: | | |
.\venv\Scripts\activate | |
python3 setup.py -V | |
pyinstaller --onefile --noconsole -i icon_48x48.ico -p src -n nanovna-saver.exe nanovna-saver.py | |
- name: Archive production artifacts | |
uses: actions/upload-artifact@v1 | |
with: | |
name: NanoVNASaver.${{ matrix.arch }} | |
path: dist/nanovna-saver.exe |