2022-10-06 16:15:59 +00:00
|
|
|
name: Modern Linux Release
|
2022-09-25 16:10:09 +00:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- v*
|
|
|
|
workflow_dispatch:
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
release:
|
|
|
|
runs-on: ubuntu-22.04
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2023-02-01 08:04:09 +00:00
|
|
|
uses: actions/checkout@v3
|
2022-09-25 16:10:09 +00:00
|
|
|
- name: Install python
|
|
|
|
run: |
|
2023-01-01 15:06:43 +00:00
|
|
|
sudo add-apt-repository ppa:deadsnakes/ppa
|
2022-09-25 16:10:09 +00:00
|
|
|
sudo apt-get update
|
2023-01-01 15:06:43 +00:00
|
|
|
sudo apt install -y python3.11 python3-pip python3.11-venv \
|
|
|
|
python3.11-dev \
|
2022-09-25 16:10:09 +00:00
|
|
|
python3-pyqt5
|
|
|
|
- name: Install dependencies and pyinstall
|
|
|
|
run: |
|
2023-01-01 15:06:43 +00:00
|
|
|
python3.11 -m venv build
|
2022-09-25 16:10:09 +00:00
|
|
|
. build/bin/activate
|
2023-03-14 19:10:27 +00:00
|
|
|
python -m pip install pip==23.0.1 setuptools==67.6.0
|
2022-09-25 16:10:09 +00:00
|
|
|
pip install -r requirements.txt
|
2023-03-14 19:10:27 +00:00
|
|
|
pip install PyInstaller==5.9.0
|
2022-09-25 16:10:09 +00:00
|
|
|
- name: Build binary
|
|
|
|
run: |
|
|
|
|
. build/bin/activate
|
2023-03-15 11:55:56 +00:00
|
|
|
python setup.py -V
|
2023-03-14 20:00:56 +00:00
|
|
|
pyinstaller --onefile -p src -n nanovna-saver nanovna-saver.py
|
2022-09-25 16:10:09 +00:00
|
|
|
- name: Archive production artifacts
|
|
|
|
uses: actions/upload-artifact@v1
|
|
|
|
with:
|
2022-10-06 16:15:59 +00:00
|
|
|
name: NanoVNASaver.linux_modern
|
2022-09-25 16:10:09 +00:00
|
|
|
path: dist/nanovna-saver
|