From 83be1c7c229e638b1983e1b38608c45e35bcea1a Mon Sep 17 00:00:00 2001 From: Gwilym Kuiper Date: Thu, 24 Feb 2022 22:08:36 +0000 Subject: [PATCH] Add ability to run example in release mode --- justfile | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/justfile b/justfile index 55f76f3..7fbe4ef 100644 --- a/justfile +++ b/justfile @@ -12,6 +12,10 @@ run-example example: just _build-example "{{example}}" mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/debug/examples/{{example}}" +run-example-release example: + just _build-example-release "{{example}}" + mgba-qt "$CARGO_TARGET_DIR/thumbv4t-none-eabi/release/examples/{{example}}" + ci: && build-roms just _all-crates _build just _all-crates _test-debug @@ -71,4 +75,6 @@ _clean crate: (cd "{{crate}}" && cargo clean) _build-example example: - (cd agb && cargo build "--example={{example}}") \ No newline at end of file + (cd agb && cargo build "--example={{example}}") +_build-example-release example: + (cd agb && cargo build "--example={{example}}" --release) \ No newline at end of file