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
|
2023-03-15 12:02:49 +00:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
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 \
|
2023-07-31 11:31:27 +00:00
|
|
|
'^libxcb.*-dev' libx11-xcb-dev \
|
|
|
|
libglu1-mesa-dev libxrender-dev libxi-dev \
|
|
|
|
libxkbcommon-dev libxkbcommon-x11-dev
|
2022-09-25 16:10:09 +00:00
|
|
|
- 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
|
2024-01-10 08:23:35 +00:00
|
|
|
python -m pip install pip==23.3.2 setuptools==69.0.3
|
2022-09-25 16:10:09 +00:00
|
|
|
pip install -r requirements.txt
|
2024-01-10 08:23:35 +00:00
|
|
|
pip install PyInstaller==6.3.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
|
2024-02-11 11:07:47 +00:00
|
|
|
pyinstaller --onefile \
|
|
|
|
-p src \
|
|
|
|
--add-data "build/lib/python3.11/site-packages/PyQt6/sip.*.so:PyQt6/sip.so" \
|
|
|
|
--add-data "build/lib/python3.11/site-packages/PyQt6/Qt6:PyQt6/Qt6"
|
|
|
|
-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
|