From ccc6802028a7fd0ac52ecff5a64197e65eefebc4 Mon Sep 17 00:00:00 2001 From: UnknownShadow200 Date: Sat, 23 Mar 2024 19:51:46 +1100 Subject: [PATCH] DS: Add github action workflow --- .github/workflows/build_ds.yml | 38 ++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .github/workflows/build_ds.yml diff --git a/.github/workflows/build_ds.yml b/.github/workflows/build_ds.yml new file mode 100644 index 000000000..24a4e1920 --- /dev/null +++ b/.github/workflows/build_ds.yml @@ -0,0 +1,38 @@ +name: Build latest (DS) +on: [push] + +concurrency: + group: ${{ github.ref }}-ds + 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@v3 + - name: Compile DS 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 install curl + + - uses: ./.github/actions/notify_failure + if: ${{ always() && steps.compile.outcome == 'failure' }} + with: + NOTIFY_MESSAGE: 'Failed to compile DS 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' \ No newline at end of file