2024-03-08 10:53:48 -05:00
|
|
|
name: Build latest (Switch)
|
2024-05-13 08:24:47 -04:00
|
|
|
# trigger via either push to selected branches or on manual run
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
2024-05-16 04:47:09 -04:00
|
|
|
- main
|
2024-05-13 08:24:47 -04:00
|
|
|
- master
|
|
|
|
workflow_dispatch:
|
2024-03-08 10:53:48 -05:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.ref }}-switch
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build-switch:
|
|
|
|
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'
|
2024-04-27 19:11:15 -04:00
|
|
|
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'
|