kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
33 wiersze
724 B
YAML
33 wiersze
724 B
YAML
name: Mac Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: 3.9
|
|
- name: Install dependencies and pyinstall
|
|
run: |
|
|
python -m pip install pip==22.2.2 setuptools==65.3.0
|
|
pip install -r requirements.txt
|
|
pip install PyInstaller==5.4.1
|
|
- name: Build binary
|
|
run: |
|
|
pyinstaller --onefile -n nanovna-saver nanovna-saver.py
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: NanoVNASaver.macos
|
|
path: dist/nanovna-saver
|