aboutsummaryrefslogtreecommitdiff
path: root/mise.toml
diff options
context:
space:
mode:
authorMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 12:54:28 +0200
committerMartin Kagamino Lehoux <martin@lehoux.net>2026-04-08 12:54:28 +0200
commit5babc34721e5f587ecae5bd4432fd57bf8c401fe (patch)
tree5086e5c4b31dbb992b8557307c7d44c1b8a3bacf /mise.toml
parent14370ac9082c620eeec72e329b808ab3daa8d915 (diff)
Replace Makefile with mise.toml
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'mise.toml')
-rw-r--r--mise.toml44
1 files changed, 44 insertions, 0 deletions
diff --git a/mise.toml b/mise.toml
new file mode 100644
index 0000000..af14e2b
--- /dev/null
+++ b/mise.toml
@@ -0,0 +1,44 @@
+[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 include/*.h tests/*.c *.c"
+
+[tasks.check]
+depends = ["debug"]
+run = [
+ "clang-format --dry-run src/*.c include/*.h tests/*.c *.c --fail-on-incomplete-format",
+ "ruff check",
+ "ruff format --check",
+ "mise run test"
+]