2020-08-01 07:45:22 +00:00
|
|
|
name: Mac 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-30 08:00:42 +00:00
|
|
|
release:
|
2020-08-01 07:45:22 +00:00
|
|
|
runs-on: macos-latest
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python
|
|
|
|
uses: actions/setup-python@v2
|
|
|
|
with:
|
2022-01-11 16:22:33 +00:00
|
|
|
python-version: 3.9
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Install dependencies and pyinstall
|
|
|
|
run: |
|
2022-09-08 06:52:31 +00:00
|
|
|
python -m pip install pip==22.2.2 setuptools==65.3.0
|
2020-06-19 07:01:50 +00:00
|
|
|
pip install -r requirements.txt
|
2022-09-20 05:26:50 +00:00
|
|
|
pip install PyInstaller==5.4.1
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
2020-08-01 07:45:22 +00:00
|
|
|
pyinstaller --onefile -n nanovna-saver 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.macos
|
|
|
|
path: dist/nanovna-saver
|