2020-08-01 07:45:22 +00:00
|
|
|
name: Windows Release
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
2021-10-10 12:33:25 +00:00
|
|
|
workflow_dispatch:
|
2020-06-19 07:01:50 +00:00
|
|
|
|
2020-06-19 07:25:22 +00:00
|
|
|
jobs:
|
2020-10-29 18:25:25 +00:00
|
|
|
release:
|
2020-08-01 07:45:22 +00:00
|
|
|
runs-on: windows-latest
|
2020-06-19 07:01:50 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2023-08-03 15:01:03 +00:00
|
|
|
arch: [x64, ]
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
steps:
|
2023-02-01 08:04:09 +00:00
|
|
|
- uses: actions/checkout@v3
|
2023-03-15 12:02:49 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Set up Python
|
2023-03-15 12:14:14 +00:00
|
|
|
uses: actions/setup-python@v4
|
2020-06-19 07:01:50 +00:00
|
|
|
with:
|
2023-08-03 15:01:03 +00:00
|
|
|
python-version: 3.11
|
2020-08-01 07:45:22 +00:00
|
|
|
architecture: ${{ matrix.arch }}
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Install dependencies and pyinstall
|
|
|
|
run: |
|
2023-11-14 17:04:18 +00:00
|
|
|
python3 -m venv venv
|
|
|
|
.\venv\Scripts\activate
|
2024-01-10 08:23:35 +00:00
|
|
|
python3 -m pip install pip==23.3.2
|
2023-11-14 17:04:18 +00:00
|
|
|
python3 -m pip install -U setuptools setuptools-scm
|
|
|
|
python3 -m pip install -r requirements.txt
|
2024-01-10 08:23:35 +00:00
|
|
|
python3 -m pip install PyInstaller==6.3.0
|
2023-11-14 17:04:18 +00:00
|
|
|
python3 -m pip uninstall -y PyQt6-sip
|
|
|
|
python3 -m pip install PyQt6-sip==13.6.0
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
2023-11-14 17:04:18 +00:00
|
|
|
.\venv\Scripts\activate
|
|
|
|
python3 setup.py -V
|
2023-08-03 15:01:03 +00:00
|
|
|
pyinstaller --onefile --noconsole -i icon_48x48.ico -p src -n nanovna-saver.exe nanovna-saver.py
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2020-08-01 07:45:22 +00:00
|
|
|
name: NanoVNASaver.${{ matrix.arch }}
|
2020-07-28 19:33:57 +00:00
|
|
|
path: dist/nanovna-saver.exe
|