aboutsummaryrefslogtreecommitdiff
path: root/mise.toml
diff options
context:
space:
mode:
Diffstat (limited to 'mise.toml')
-rw-r--r--mise.toml23
1 files changed, 23 insertions, 0 deletions
diff --git a/mise.toml b/mise.toml
new file mode 100644
index 0000000..bfa3c33
--- /dev/null
+++ b/mise.toml
@@ -0,0 +1,23 @@
+[tools]
+go = "1.27"
+
+[tasks.build]
+description = "Build the ray tracer binary"
+run = "go build -o goraytracer ."
+
+[tasks.run]
+description = "Render the default scene to img.png (2000x1000, ~5s)"
+run = "go run ."
+
+[tasks.check]
+description = "Format, vet, apply go fix, and build"
+run = [
+ "go fmt ./...",
+ "go fix -diff ./...",
+ "go vet ./...",
+ "go build ./...",
+]
+
+[tasks.clean]
+description = "Remove rendered image and binary"
+run = "rm -f img.png goraytracer"