mirror of
https://github.com/italicsjenga/agb.git
synced 2024-12-23 08:11:33 +11:00
Add ability to just run an example
This commit is contained in:
parent
fdaaa1fc77
commit
28cc061596
7
justfile
7
justfile
|
@ -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}}")
|
Loading…
Reference in a new issue