kopia lustrzana https://github.com/NanoVNA-Saver/nanovna-saver
36 wiersze
831 B
YAML
36 wiersze
831 B
YAML
name: Python Release
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- v*
|
|
|
|
jobs:
|
|
release:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
python-version: [3.8, ]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies and pyinstall
|
|
run: |
|
|
python -m pip install --upgrade pip setuptools
|
|
pip install -r requirements.txt
|
|
pip install PyInstaller==3.6
|
|
- name: Build binary
|
|
run: |
|
|
pyinstaller nanovna-saver.py
|
|
|
|
- name: Archive production artifacts
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: NanoVNASaver.${{ matrix.os }}
|
|
path: dist/nanovna-saver
|