BAPSicle/.github/workflows/build.yaml

114 lines
3.1 KiB
YAML
Raw Normal View History

2021-04-10 22:05:12 +00:00
name: Package
2021-09-23 00:09:06 +00:00
on: [push]
2021-09-22 23:46:16 +00:00
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', '3.11']
node-version: ['20']
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 }}
2021-12-23 17:43:54 +00:00
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2021-04-10 22:05:12 +00:00
- 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-09-23 00:09:06 +00:00
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
2021-09-23 00:09:06 +00:00
id: extract_branch
2021-04-10 22:05:12 +00:00
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-23 00:09:06 +00:00
name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-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.8','3.9', '3.11']
node-version: ['20']
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 }}
2021-12-23 17:43:54 +00:00
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2021-04-10 22:05:12 +00:00
- 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
2021-09-23 00:09:06 +00:00
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
2021-09-23 00:09:06 +00:00
id: extract_branch
2021-04-10 22:05:12 +00:00
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-23 00:09:06 +00:00
name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-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', '3.11']
node-version: ['20']
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 }}
2021-12-23 17:43:54 +00:00
- uses: actions/checkout@v2
- name: Set up Node ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
2021-04-10 22:05:12 +00:00
- name: Build .exe
run: |
2021-04-16 19:30:50 +00:00
npm run presenter-make
build/build-windows.bat no-venv
2021-09-23 00:09:06 +00:00
- name: Extract branch name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
2021-09-23 00:09:06 +00:00
id: extract_branch
2021-04-10 22:05:12 +00:00
- name: Archive Build
uses: actions/upload-artifact@v2
with:
2021-09-23 00:09:06 +00:00
name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-Windows
2021-04-10 22:05:12 +00:00
path: |
build/output/BAPSicle.exe
install/