-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathjustfile
More file actions
54 lines (37 loc) · 878 Bytes
/
Copy pathjustfile
File metadata and controls
54 lines (37 loc) · 878 Bytes
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
OCI_IMAGE := "ghcr.io/nooneknowspeter/cpplings:main"
default:
@just --list
run:
zig build run
build:
zig build
solutions:
zig build
./zig-out/bin/cpplings_cli -s
patches:
zig build
./zig-out/bin/cpplings_cli -p
compile-commands:
zig build compile-flags
nix-shell:
nix --extra-experimental-features "nix-command flakes" develop
docker-build:
docker buildx build -t ${OCI_IMAGE} .
docker-run:
docker run -itd -v .:/cpplings --name cpplings ${OCI_IMAGE}
docker-exec:
docker exec -it -w "/cpplings" cpplings bash
docker-stop:
docker container stop cpplings
docker-rm:
docker rm -f cpplings
format:
treefmt
lint:
treefmt --ci --config-file treefmt.lint.toml
benchmark:
hyperfine -i "zig build cli"
get-header-macros:
zig c++ -dM -E -x c++ -v /dev/null
get-headers:
zig c++ -E -x c++ -v /dev/null