-
Notifications
You must be signed in to change notification settings - Fork 6
/
justfile
44 lines (30 loc) · 882 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
38
39
40
41
42
43
44
set dotenv-load
set positional-arguments
target := env_var_or_default("TARGET", "native")
optimize := "Debug"
flags := "-freference-trace=10 -Dtarget="+target+" -Doptimize="+optimize
build *ARGS:
zig build --summary none {{flags}} "$@"
run *ARGS:
zig build run --summary none {{flags}} -- {{ARGS}}
watch *ARGS:
watchexec -e zig,py,vert,frag,comp -c -- "just ${*@Q} && echo ok"
test:
zig build test --summary failures {{flags}}
just install
tests/run-all-tests.sh
test-file *ARGS:
zig test {{flags}} "$@"
test-lldb:
zig build -Dinstall-tests
lldb --batch --one-line run -- ./zig-out/bin/unit-tests
clean:
rm -rf zig-cache zig-out
install prefix="$HOME/.local/":
zig build install --prefix "{{prefix}}" {{flags}}
stderr:
tail --follow stderr.log
generate-spec:
cd spec && just
release:
zig build release {{flags}}