kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
36 wiersze
794 B
YAML
36 wiersze
794 B
YAML
name: Mac Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: macos-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
fetch-depth: 0
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: 3.11
|
|
- name: Install dependencies and pyinstall
|
|
run: |
|
|
python -m pip install pip==23.3.2 setuptools==69.0.3
|
|
pip install -r requirements.txt
|
|
pip install PyInstaller==6.3.0
|
|
- name: Build binary
|
|
run: |
|
|
python setup.py -V
|
|
pyinstaller --onefile -p src -n nanovna-saver nanovna-saver.py
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: NanoVNASaver.macos
|
|
path: dist/nanovna-saver
|