BAPSicle/.github/workflows/build.yaml

118 lines
3.4 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:
2024-03-29 15:10:21 +00:00
# build-macos:
2021-04-10 22:05:12 +00:00
2024-03-29 15:10:21 +00:00
# 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
2024-03-29 15:10:21 +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 }}
# - uses: actions/checkout@v2
# - name: Set up Node ${{ matrix.node-version }}
# uses: actions/setup-node@v2
# with:
# node-version: ${{ matrix.node-version }}
# - name: Build .app
# run: |
# npm run presenter-make
# build/build-macos.sh
# zip -r build/output/BAPSicle.zip build/output/BAPSicle.app
# - name: Extract branch name
# shell: bash
# run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF##*/})"
# id: extract_branch
# - name: Archive Build
# uses: actions/upload-artifact@v2
# with:
# name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-MacOS
# 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 }}
2024-03-29 16:38:10 +00:00
- name: Setup poetry
uses: Gr1N/setup-poetry@v8
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@v4
2021-04-10 22:05:12 +00:00
with:
name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-Ubuntu-python${{matrix.python-version}}-node${{matrix.node-version}}
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 }}
2024-03-29 16:38:10 +00:00
- name: Setup poetry
uses: Gr1N/setup-poetry@v8
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@v4
2021-04-10 22:05:12 +00:00
with:
name: BAPSicle-${{ steps.extract_branch.outputs.branch }}-${{github.sha}}-Windows-python${{matrix.python-version}}-node${{matrix.node-version}}
2021-04-10 22:05:12 +00:00
path: |
build/output/BAPSicle.exe
install/