2020-08-01 07:45:22 +00:00
|
|
|
name: Linux 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:
|
2022-09-25 16:10:09 +00:00
|
|
|
runs-on: ubuntu-20.04
|
2020-06-19 07:01:50 +00:00
|
|
|
|
|
|
|
steps:
|
2022-03-26 19:11:33 +00:00
|
|
|
- name: Checkout repository
|
2023-02-01 08:04:09 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-03-26 19:11:33 +00:00
|
|
|
- name: Install python
|
|
|
|
run: |
|
|
|
|
sudo apt-get update
|
|
|
|
sudo apt install -y python3.9 python3-pip python3.9-venv \
|
|
|
|
python3.9-dev \
|
|
|
|
python3-pyqt5
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Install dependencies and pyinstall
|
|
|
|
run: |
|
2022-03-26 19:11:33 +00:00
|
|
|
python3.9 -m venv build
|
|
|
|
. build/bin/activate
|
2023-03-14 19:10:27 +00:00
|
|
|
python -m pip install pip==23.0.1 setuptools==67.6.0
|
2020-06-19 07:01:50 +00:00
|
|
|
pip install -r requirements.txt
|
2023-03-14 19:10:27 +00:00
|
|
|
pip install PyInstaller==5.9.0
|
2020-06-19 07:01:50 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
2022-03-26 19:11:33 +00:00
|
|
|
. build/bin/activate
|
2023-03-14 20:00:56 +00:00
|
|
|
pyinstaller --onefile -p src -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.linux
|
|
|
|
path: dist/nanovna-saver
|