mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-22 17:12:25 -05:00
46 lines
No EOL
1.4 KiB
YAML
46 lines
No EOL
1.4 KiB
YAML
name: Build latest (Switch)
|
|
on: [push, workflow_dispatch]
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-switch
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-switch:
|
|
if: github.ref_name == github.event.repository.default_branch
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: devkitpro/devkita64:latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Compile Switch build
|
|
id: compile
|
|
run: |
|
|
make switch
|
|
|
|
|
|
- uses: ./.github/actions/notify_failure
|
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
with:
|
|
NOTIFY_MESSAGE: 'Failed to compile Switch build'
|
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube-switch.nro'
|
|
DEST_NAME: 'ClassiCube-switch.nro'
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube-switch.elf'
|
|
DEST_NAME: 'ClassiCube-switch.elf'
|
|
|
|
|
|
- uses: ./.github/actions/notify_success
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
DESTINATION_URL: '${{ secrets.NOTIFY_URL }}'
|
|
WORKFLOW_NAME: 'switch' |