blob: e167ed2acb7774eec04b3a6ac0147d13798d2065 (
plain) (
blame)
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
|
[tasks.generate]
run = "fish generate.fish"
[tasks.debug]
depends = ["generate"]
run = [
"mkdir -p Debug",
"cmake -DCMAKE_BUILD_TYPE=Debug -B Debug",
"cmake --build Debug"
]
[tasks.release]
depends = ["generate"]
run = [
"mkdir -p Release",
"cmake -DCMAKE_BUILD_TYPE=Release -B Release",
"cmake --build Release"
]
[tasks.profile]
depends = ["generate"]
run = [
"mkdir -p Profile",
"cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -B Profile",
"cmake --build Profile",
"valgrind --tool=callgrind --dump-instr=yes --callgrind-out-file=callgrind.out ./Profile/main 100MB.json 1",
"kcachegrind callgrind.out"
]
[tasks.test]
depends = ["debug"]
run = "./Debug/test"
[tasks.format]
run = "clang-format -i src/**/*.c src/**/*.h *.c"
[tasks.check]
depends = ["debug"]
run = [
"clang-format --dry-run src/**/*.c src/**/*.h *.c --fail-on-incomplete-format",
"ruff check",
"ruff format --check",
"uv run ty check",
"mise run test"
]
|