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}}"