From 02de5a16507e7a84625fb2719ef005970089b864 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCller?= Date: Sat, 26 Mar 2022 20:11:33 +0100 Subject: [PATCH] Fix linux binary build --- .github/workflows/release_linux.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release_linux.yml b/.github/workflows/release_linux.yml index c532812..6434aeb 100644 --- a/.github/workflows/release_linux.yml +++ b/.github/workflows/release_linux.yml @@ -11,20 +11,25 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up Python - uses: actions/setup-python@v2 - with: - python-version: '3.10' + - name: Checkout repository + uses: actions/checkout@v2 + - name: Install python + run: | + sudo apt-get update + sudo apt install -y python3.9 python3-pip python3.9-venv \ + python3.9-dev \ + python3-pyqt5 - name: Install dependencies and pyinstall run: | + python3.9 -m venv build + . build/bin/activate python -m pip install pip==22.0.4 setuptools==60.10.0 pip install -r requirements.txt pip install PyInstaller==4.10 - name: Build binary run: | + . build/bin/activate pyinstaller --onefile -n nanovna-saver nanovna-saver.py - - name: Archive production artifacts uses: actions/upload-artifact@v1 with: