From c228910885ac5f5a6ddd0de02639f5afc9576348 Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 24 Feb 2022 21:35:02 +0000 Subject: [PATCH] Also ensure the release goes as intended --- .github/workflows/publish-agb.yml | 3 ++- justfile | 8 +++++--- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish-agb.yml b/.github/workflows/publish-agb.yml index df3b5c1b..73618279 100644 --- a/.github/workflows/publish-agb.yml +++ b/.github/workflows/publish-agb.yml @@ -26,8 +26,9 @@ jobs: API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }} run: bash .github/scripts/update-template-repo.sh + - uses: extractions/setup-just@v1 - name: Build the examples - run: bash .github/scripts/build-example-gba-files.sh + run: just build-roms - name: Upload examples to the release uses: svenstaro/upload-release-action@v2 with: diff --git a/justfile b/justfile index 561c5b95..9f93aaff 100644 --- a/justfile +++ b/justfile @@ -1,12 +1,12 @@ -build: _build-roms +build: build-roms -ci: && _build-roms +ci: && build-roms just _all-crates _build just _all-crates _test-debug just _all-crates _test-release just _all-crates _clippy -_build-roms: +build-roms: just _build-rom "examples/the-purple-night" "PURPLENIGHT" just _build-rom "examples/the-hat-chooses-the-wizard" "HATWIZARD" @@ -16,6 +16,8 @@ _build-roms: _build-rom folder name: #!/usr/bin/env bash + set -euxo pipefail + GAME_FOLDER="{{folder}}" INTERNAL_NAME="{{name}}"