mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-01-23 09:34:35 -05:00
46 lines
1.4 KiB
YAML
46 lines
1.4 KiB
YAML
name: Build latest (NDS)
|
|
on: [push]
|
|
|
|
concurrency:
|
|
group: ${{ github.ref }}-nds
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
build-DS:
|
|
if: github.ref_name == github.event.repository.default_branch
|
|
runs-on: ubuntu-latest
|
|
container:
|
|
image: skylyrac/blocksds:dev-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Compile NDS build
|
|
id: compile
|
|
run: |
|
|
export BLOCKSDS=/opt/blocksds/core
|
|
export BLOCKSDSEXT=/opt/blocksds/external
|
|
make ds
|
|
|
|
|
|
# otherwise notify_failure doesn't work
|
|
- name: Install curl when necessary
|
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
run: apt-get -y install curl
|
|
|
|
- uses: ./.github/actions/notify_failure
|
|
if: ${{ always() && steps.compile.outcome == 'failure' }}
|
|
with:
|
|
NOTIFY_MESSAGE: 'Failed to compile NDS build'
|
|
WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}'
|
|
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'ClassiCube.nds'
|
|
DEST_NAME: 'ClassiCube.nds'
|
|
|
|
- uses: ./.github/actions/upload_build
|
|
if: ${{ always() && steps.compile.outcome == 'success' }}
|
|
with:
|
|
SOURCE_FILE: 'build-nds/ClassiCube.elf'
|
|
DEST_NAME: 'ClassiCube-nds.elf'
|