diff --git a/.github/workflows/build_dreamcast.yml b/.github/workflows/build_dreamcast.yml new file mode 100644 index 0000000..88929f8 --- /dev/null +++ b/.github/workflows/build_dreamcast.yml @@ -0,0 +1,37 @@ +name: Build latest (Dreamcast) +on: [push] + +concurrency: + group: ${{ github.ref }}-dreamcast + cancel-in-progress: true + +jobs: + build: + if: github.ref_name == github.event.repository.default_branch + runs-on: ubuntu-latest + container: + image: kazade/dreamcast-sdk + steps: + - uses: actions/checkout@v3 + - name: Compile Dreamcast build + id: compile + run: | + make dreamcast + + - uses: ./.github/actions/notify_failure + if: ${{ always() && steps.compile.outcome == 'failure' }} + with: + NOTIFY_MESSAGE: 'Failed to compile Dreamcast build' + WEBHOOK_URL: '${{ secrets.WEBHOOK_URL }}' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'ClassiCube-dc.elf' + DEST_NAME: 'ClassiCube-dc.elf' + + - uses: ./.github/actions/upload_build + if: ${{ always() && steps.compile.outcome == 'success' }} + with: + SOURCE_FILE: 'ClassiCube-dc.iso' + DEST_NAME: 'ClassiCube-dc.iso' \ No newline at end of file diff --git a/.github/workflows/build_xbox.yml b/.github/workflows/build_xbox.yml index 8bc70fe..99f27b8 100644 --- a/.github/workflows/build_xbox.yml +++ b/.github/workflows/build_xbox.yml @@ -18,7 +18,7 @@ jobs: run: | eval $(/usr/src/nxdk/bin/activate -s) make xbox - + # otherwise notify_failure doesn't work - name: Install curl when necessary