Fix quit_app crash #106
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: App Builder | |
on: | |
push: | |
branches: master | |
workflow_dispatch: | |
concurrency: | |
cancel-in-progress: true | |
# we want to group based on the push type not the ref | |
group: ${{ github.ref_type }} | |
env: | |
ARTIFACT_BASE_NAME: 'music_caster_artifacts' # + '_${runsOn}' | |
github: ${{ secrets.GITHUB_TOKEN }} | |
jobs: | |
build: | |
strategy: | |
matrix: | |
platform: [windows-latest] | |
runs-on: ${{matrix.platform}} | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: 3.12 | |
cache: pip | |
- uses: actions/setup-go@v5 | |
- name: Install system deps | |
run: python build.py --deps | |
- name: Create Python venv | |
run: | | |
python -m venv .venv | |
- name: Install venv dependencies | |
run: | | |
.venv\Scripts\Activate.ps1 | |
python build.py --deps | |
- name: Build | |
run: | | |
.venv\Scripts\Activate.ps1 | |
python build.py --ci --no-deps --no-tests --no-install | |
- name: Test build | |
run: | | |
.venv\Scripts\Activate.ps1 | |
python build.py --ci --no-deps --no-build --no-install | |
# upload the build continuously to avoid duplicate build on a tag | |
# script will exit with zero if release for VERSION exists since --ci is used | |
- name: Upload build | |
if: ${{ github.event_name == 'push' && github.ref_name == 'master' }} | |
run: | | |
.venv\Scripts\Activate.ps1 | |
python build.py -u --ci --no-deps --no-build --no-tests --no-install | |
# TODO: if/when MacOS is supported? | |
# release: | |
# needs: build | |
# runs-on: ubuntu-latest |