mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Ensure feature flag combinations are built in CI and tested
This commit is contained in:
parent
580afa9335
commit
96ad727b55
20
justfile
20
justfile
|
@ -4,18 +4,22 @@ CLIPPY_ARGUMENTS := "-Dwarnings -Dclippy::all -Aclippy::empty-loop"
|
|||
build: build-roms
|
||||
|
||||
build-debug:
|
||||
just _build-debug agb
|
||||
just _build-debug tracker/agb-tracker
|
||||
(cd agb && cargo build --no-default-features)
|
||||
(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:
|
||||
just _build-release agb
|
||||
just _build-release tracker/agb-tracker
|
||||
(cd agb && cargo build --examples --tests --release)
|
||||
|
||||
clippy:
|
||||
just _all-crates _clippy
|
||||
|
||||
test:
|
||||
just _test-debug agb
|
||||
just _test-multiboot
|
||||
just _test-debug tracker/agb-tracker
|
||||
just _test-multiboot
|
||||
just _test-debug-arm agb
|
||||
|
||||
test-release:
|
||||
|
@ -147,17 +151,11 @@ _all-crates target:
|
|||
just "{{target}}" "$PROJECT_DIR" || exit $?; \
|
||||
done
|
||||
|
||||
_build-debug crate:
|
||||
(cd "{{crate}}" && cargo build --examples --tests)
|
||||
_build-release crate:
|
||||
(cd "{{crate}}" && cargo build --release --examples --tests)
|
||||
_test-release crate:
|
||||
just _build-release {{crate}}
|
||||
(cd "{{crate}}" && cargo test --release)
|
||||
_test-release-arm crate:
|
||||
(cd "{{crate}}" && cargo test --release --target=armv4t-none-eabi)
|
||||
_test-debug crate:
|
||||
just _build-debug {{crate}}
|
||||
(cd "{{crate}}" && cargo test)
|
||||
_test-debug-arm crate:
|
||||
(cd "{{crate}}" && cargo test --target=armv4t-none-eabi)
|
||||
|
|
Loading…
Reference in a new issue