Ensure feature flag combinations are built in CI and tested

This commit is contained in:
Gwilym Inzani 2024-04-20 20:28:17 +01:00
parent 580afa9335
commit 96ad727b55

View file

@ -4,18 +4,22 @@ CLIPPY_ARGUMENTS := "-Dwarnings -Dclippy::all -Aclippy::empty-loop"
build: build-roms build: build-roms
build-debug: build-debug:
just _build-debug agb (cd agb && cargo build --no-default-features)
just _build-debug tracker/agb-tracker (cd agb && cargo build --no-default-features --features=testing)
(cd agb && cargo build --examples --tests)
(cd tracker/agb-tracker && cargo build --examples --tests)
build-release: build-release:
just _build-release agb (cd agb && cargo build --examples --tests --release)
just _build-release tracker/agb-tracker
clippy: clippy:
just _all-crates _clippy just _all-crates _clippy
test: test:
just _test-debug agb just _test-debug agb
just _test-multiboot
just _test-debug tracker/agb-tracker just _test-debug tracker/agb-tracker
just _test-multiboot
just _test-debug-arm agb just _test-debug-arm agb
test-release: test-release:
@ -147,17 +151,11 @@ _all-crates target:
just "{{target}}" "$PROJECT_DIR" || exit $?; \ just "{{target}}" "$PROJECT_DIR" || exit $?; \
done done
_build-debug crate:
(cd "{{crate}}" && cargo build --examples --tests)
_build-release crate:
(cd "{{crate}}" && cargo build --release --examples --tests)
_test-release crate: _test-release crate:
just _build-release {{crate}}
(cd "{{crate}}" && cargo test --release) (cd "{{crate}}" && cargo test --release)
_test-release-arm crate: _test-release-arm crate:
(cd "{{crate}}" && cargo test --release --target=armv4t-none-eabi) (cd "{{crate}}" && cargo test --release --target=armv4t-none-eabi)
_test-debug crate: _test-debug crate:
just _build-debug {{crate}}
(cd "{{crate}}" && cargo test) (cd "{{crate}}" && cargo test)
_test-debug-arm crate: _test-debug-arm crate:
(cd "{{crate}}" && cargo test --target=armv4t-none-eabi) (cd "{{crate}}" && cargo test --target=armv4t-none-eabi)