Merge pull request #278 from gwilymk/move-gba-ld-consistency-to-just-ci

Check linker script consistency using just ci
This commit is contained in:
Gwilym Kuiper 2022-08-02 23:21:56 +01:00 committed by GitHub
commit ed30fe212e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 6 additions and 15 deletions

View file

@ -11,6 +11,7 @@ env:
jobs: jobs:
build: build:
name: Just CI
runs-on: ubuntu-20.04 runs-on: ubuntu-20.04
steps: steps:
- name: Install build tools - name: Install build tools

View file

@ -1,14 +0,0 @@
name: Enforce gba.ld consistency
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Check if gba.ld files are identical
run: find -type f -name gba.ld -print0 | xargs -0 -n1 cmp -- agb/gba.ld
- name: Check if gba_mb.ld files are identical
run: find -type f -name gba_mb.ld -print0 | xargs -0 -n1 cmp -- agb/gba_mb.ld

View file

@ -39,7 +39,11 @@ run-game game:
run-game-debug game: run-game-debug game:
(cd "examples/{{game}}" && cargo run) (cd "examples/{{game}}" && cargo run)
ci: build-debug clippy test build-release test-release doctest-agb build-roms build-book check-linker-script-consistency:
find -type f -name gba.ld -print0 | xargs -0 -n1 cmp -- agb/gba.ld
find -type f -name gba_mb.ld -print0 | xargs -0 -n1 cmp -- agb/gba_mb.ld
ci: check-linker-script-consistency build-debug clippy test build-release test-release doctest-agb build-roms build-book
build-roms: build-roms:
just _build-rom "examples/the-purple-night" "PURPLENIGHT" just _build-rom "examples/the-purple-night" "PURPLENIGHT"