BAPSicle/.github/workflows/build.yaml

86 lines
2 KiB
YAML
Raw Normal View History

2021-04-10 22:05:12 +00:00
name: Package
2021-09-22 23:46:16 +00:00
on: [push,pull_request]
2021-09-22 23:30:09 +00:00
env:
2021-09-22 23:46:16 +00:00
version: ${{github.head_ref}}${{github.ref}}
2021-04-10 22:05:12 +00:00
jobs:
build-macos:
runs-on: macos-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build .app
run: |
2021-04-16 19:30:50 +00:00
npm run presenter-make
2021-04-10 22:05:12 +00:00
build/build-macos.sh
2021-04-10 23:17:19 +00:00
zip -r build/output/BAPSicle.zip build/output/BAPSicle.app
2021-04-10 22:05:12 +00:00
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-22 23:30:09 +00:00
name: BAPSicle-${{ env.version }}-MacOS
2021-04-10 22:05:12 +00:00
path: |
build/output/BAPSicle.zip
2021-04-10 22:05:12 +00:00
build-ubuntu:
runs-on: ubuntu-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: [3.9]
2021-04-10 22:05:12 +00:00
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build executable
run: |
2021-04-16 19:30:50 +00:00
npm run presenter-make
2021-04-10 22:05:12 +00:00
build/build-linux.sh
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-22 23:30:09 +00:00
name: BAPSicle-${{ env.version }}-Ubuntu
2021-04-10 22:05:12 +00:00
path: |
build/output/BAPSicle
build-windows:
runs-on: windows-latest
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
python-version: [3.9]
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Build .exe
run: |
2021-04-16 19:30:50 +00:00
npm run presenter-make
build/build-windows.bat no-venv
2021-04-10 22:05:12 +00:00
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-22 23:30:09 +00:00
name: BAPSicle-${{ env.version }}-Windows
2021-04-10 22:05:12 +00:00
path: |
build/output/BAPSicle.exe
install/