Add ability to just run an example

This commit is contained in:
Gwilym Kuiper 2022-02-24 22:07:28 +00:00
parent fdaaa1fc77
commit 28cc061596

View file

@ -8,6 +8,10 @@ test:
clean:
just _all-crates _clean
run-example example:
just _build-example "{{example}}"
mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/debug/examples/{{example}}"
ci: && build-roms
just _all-crates _build
just _all-crates _test-debug
@ -65,3 +69,6 @@ _clippy crate:
if echo "{{crate}}" | grep -qE '^agb'; then (cd "{{crate}}" && cargo clippy); fi
_clean crate:
(cd "{{crate}}" && cargo clean)
_build-example example:
(cd agb && cargo build "--example={{example}}")