2020-08-01 07:45:22 +00:00
|
|
|
name: Windows Release
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
|
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:
|
2020-08-01 07:45:22 +00:00
|
|
|
arch: [x64, x86]
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2020-10-29 18:25:25 +00:00
|
|
|
python-version: 3.8
|
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: |
|
2020-06-27 14:09:36 +00:00
|
|
|
python -m pip install --upgrade pip setuptools
|
2020-10-29 18:25:25 +00:00
|
|
|
pip install -r requirements_win.txt
|
2020-06-27 14:09:36 +00:00
|
|
|
pip install PyInstaller==3.6
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
2020-07-28 19:33:57 +00:00
|
|
|
pyinstaller --onefile -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
|