-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathjustfile
More file actions
65 lines (47 loc) · 1.8 KB
/
Copy pathjustfile
File metadata and controls
65 lines (47 loc) · 1.8 KB
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
set shell := ['bash', '-uc']
zig := require('zig')
zig_test_cmd := zig + ' build test' + ' --summary all'
# TODO 2025/11/28: What was I trying to do in this file when I started re-writing it...?
# Does just now have?
# (1) optional parameter flags or only required arguments still?
# (2) invoke another receipe from WITHIN justfile even if its non-dependency?
# TODO: Add --unsorted to below if order sucks.
[private]
default:
@just --justfile {{justfile()}} --list --list-heading $'Project commands:\n'
# TODO: Flags for release types shorthand (to zig build system) if valuable. For now just a basic `zig build`.
[doc]
[group: 'build']
build *EXTRA_FLAGS:
zig build --summary all {{EXTRA_FLAGS}}
# TODO: What extra flags to zig build test do we want to pass (if any).
# [doc]
# [group: 'test']
# test *EXTRA_FLAGS:
# zig build test --summary all {{EXTRA_FLAGS}}
test _mode='off':
@echo "----------------------------------------------------- DEFAULT"
{{zig_test_cmd}} --release={{_mode}}
test-debug:
{{zig_test_cmd}} --release=off 1>/dev/null
test-fast:
@echo "----------------------------------------------------- FAST"
{{zig_test_cmd}} --release=fast 1>/dev/null
test-safe:
@echo "----------------------------------------------------- SAFE"
{{zig_test_cmd}} --release=safe 1>/dev/null
[parallel]
test-all: test-debug
@echo "DONE"
# [parallel]
# test-all: test--debug test--fast test--safe
# @echo "DONE"
# test-all: (test 'off') (test 'fast') (test 'safe')
# # @echo "DONE"
# XXX: Temporary until Zig's fuse-overlayfs d_type woes are sorted.
[private]
dt-build *EXTRA_FLAGS:
zig build --summary all -Dwith-cli=true --global-cache-dir zig-global {{EXTRA_FLAGS}}
[private]
dt-test *EXTRA_FLAGS:
zig build test --summary all --global-cache-dir zig-global {{EXTRA_FLAGS}}