From 87d73f884202dd058cd95621076749078a007c56 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Holger=20M=C3=BCller?= Date: Sat, 1 Aug 2020 09:45:22 +0200 Subject: [PATCH] Splitted github release actions (#305) * splitted github release actions * generate 32Bit windows binaries --- .github/workflows/release_linux.yml | 31 +++++++++++++++++++ .github/workflows/release_macos.yml | 31 +++++++++++++++++++ .../{release.yml => release_win.yml} | 12 +++---- 3 files changed, 68 insertions(+), 6 deletions(-) create mode 100644 .github/workflows/release_linux.yml create mode 100644 .github/workflows/release_macos.yml rename .github/workflows/{release.yml => release_win.yml} (72%) diff --git a/.github/workflows/release_linux.yml b/.github/workflows/release_linux.yml new file mode 100644 index 0000000..e1c2ade --- /dev/null +++ b/.github/workflows/release_linux.yml @@ -0,0 +1,31 @@ +name: Linux Release + +on: + push: + tags: + - v* + +jobs: + release: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - 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 --onefile -n nanovna-saver nanovna-saver.py + + - name: Archive production artifacts + uses: actions/upload-artifact@v1 + with: + name: NanoVNASaver.linux + path: dist/nanovna-saver diff --git a/.github/workflows/release_macos.yml b/.github/workflows/release_macos.yml new file mode 100644 index 0000000..e27417b --- /dev/null +++ b/.github/workflows/release_macos.yml @@ -0,0 +1,31 @@ +name: Mac Release + +on: + push: + tags: + - v* + +jobs: + release: + runs-on: macos-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.8 + - 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 --onefile -n nanovna-saver nanovna-saver.py + + - name: Archive production artifacts + uses: actions/upload-artifact@v1 + with: + name: NanoVNASaver.macos + path: dist/nanovna-saver diff --git a/.github/workflows/release.yml b/.github/workflows/release_win.yml similarity index 72% rename from .github/workflows/release.yml rename to .github/workflows/release_win.yml index b542ceb..5245afa 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release_win.yml @@ -1,4 +1,4 @@ -name: Python Release +name: Windows Release on: push: @@ -7,18 +7,18 @@ on: jobs: release: - runs-on: ${{ matrix.os }} + runs-on: windows-latest strategy: matrix: - os: [ubuntu-latest, macos-latest, windows-latest] - python-version: [3.8, ] + arch: [x64, x86] steps: - uses: actions/checkout@v2 - name: Set up Python uses: actions/setup-python@v2 with: - python-version: ${{ matrix.python-version }} + python-version: 3.8 + architecture: ${{ matrix.arch }} - name: Install dependencies and pyinstall run: | python -m pip install --upgrade pip setuptools @@ -31,5 +31,5 @@ jobs: - name: Archive production artifacts uses: actions/upload-artifact@v1 with: - name: NanoVNASaver.${{ matrix.os }} + name: NanoVNASaver.${{ matrix.arch }} path: dist/nanovna-saver.exe