Check linker script consistency using just ci

This commit is contained in:
Gwilym Kuiper 2022-08-02 22:55:24 +01:00
parent 14f42670d2
commit 566b43b85b
2 changed files with 5 additions and 15 deletions

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"