Splitted github release actions (#305)

* splitted github release actions
* generate 32Bit windows binaries
pull/299/head
Holger Müller 2020-08-01 09:45:22 +02:00 zatwierdzone przez GitHub
rodzic d8882c74bf
commit 87d73f8842
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
3 zmienionych plików z 68 dodań i 6 usunięć

Wyświetl plik

@ -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

Wyświetl plik

@ -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

Wyświetl plik

@ -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