-
Notifications
You must be signed in to change notification settings - Fork 7
/
justfile
37 lines (25 loc) · 824 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
33
34
35
36
37
set shell := ["nu", "-c"]
default:
@just --list
watch:
watchexec --exts=rs --on-busy-update=restart -- cargo run
run:
cargo run
test:
cargo test
watch-tests:
watchexec --exts=rs -- cargo test
expected_filename := "systemctl-tui"
build-release:
cargo build --release
@$"Build size: (ls target/release/{{expected_filename}} | get size)"
publish-to-local-bin: build-release
cp target/release/{{expected_filename}} ~/bin/
build-linux-x64:
cross build --target x86_64-unknown-linux-musl --release
build-linux-arm64:
cross build --target aarch64-unknown-linux-musl --release
build-windows-on-linux:
cross build --target x86_64-pc-windows-gnu --release
publish-potato-pi: build-linux-arm64
rsync target/aarch64-unknown-linux-musl/release/systemctl-tui potato-pi:~/bin/