-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
32 lines (22 loc) · 794 Bytes
/
justfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
set shell := ["nu", "-c"]
# this doesn't quite work perfectly because the terminal is stuck in raw mode after the restart
watch:
watchexec --exts=rs,js,html,css --on-busy-update=restart -- cargo run
run:
cargo run
test:
cargo test
watch-tests:
watch . { cargo test } --glob=**/*.rs
expected_filename := if os_family() == "windows" { "escape-artist.exe" } else { "escape-artist" }
build-release:
cargo build --release
ls target/release
publish-to-local-bin: build-release
cp target/release/{{expected_filename}} ~/bin/
build-linux-x64:
cross build --target x86_64-unknown-linux-gnu --release
build-linux-arm64:
cross build --target aarch64-unknown-linux-gnu --release
build-windows-on-linux:
cross build --target x86_64-pc-windows-gnu --release