add develop workflow
This commit is contained in:
57
.github/workflows/develop.yml
vendored
Normal file
57
.github/workflows/develop.yml
vendored
Normal file
@@ -0,0 +1,57 @@
|
||||
name: build
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- '!master'
|
||||
|
||||
jobs:
|
||||
|
||||
build-win64:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python 3.9
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9.5'
|
||||
- name: Upgrade pip and enable wheel support
|
||||
run: python -m pip install --upgrade pip setuptools wheel
|
||||
- name: Install Requirements
|
||||
run: |
|
||||
pip install -r requirements.txt
|
||||
pip install pyinstaller
|
||||
shell: bash
|
||||
- name: Build
|
||||
run: |
|
||||
powershell -File build-win.ps1
|
||||
mv inno-output\gotify-tray-installer.exe gotify-tray-installer-win.exe
|
||||
shell: cmd
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: gotify-tray-installer-win.exe
|
||||
path: gotify-tray-installer-win.exe
|
||||
|
||||
build-ubuntu:
|
||||
strategy:
|
||||
matrix:
|
||||
tag: [focal]
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Set up Python
|
||||
uses: actions/setup-python@v2
|
||||
with:
|
||||
python-version: '3.9.5'
|
||||
- name: Upgrade pip and enable wheel support
|
||||
run: python -m pip install --upgrade pip setuptools wheel
|
||||
- name: Build
|
||||
run: |
|
||||
make build
|
||||
cp dist/gotify-tray_amd64.deb gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
||||
- name: Upload artifact
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
||||
path: gotify-tray_amd64_ubuntu_${{ matrix.tag }}.deb
|
||||
Reference in New Issue
Block a user