Add justfile with build, test and install recipes

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
nandiandClaude Sonnet 5.5 committed 2026-11-26 18:22:57 -08:00
1 parent 216ff99dd0
commit f938945901
2 files changed
+17

No files matched your search

+2
View File
@@ -74,6 +74,8 @@ moon test --target native # semver / manifest unit tests
# the binary is _build/native/release/build/main/main.exe
```
Or run `just install` to build and copy the binary to `~/.local/bin/orbit`.
Linux only for now: arguments come from `/proc/self/cmdline`. It needs `oras`, `tar` and `/bin/sh` on `PATH`.
### Package Orbit with Orbit
+15
View File
@@ -0,0 +1,15 @@
# List recipes.
default:
@just --list
# Build the release binary.
build:
moon build --target native --release
# Run the unit tests.
test:
moon test --target native
# Build orbit and install it to ~/.local/bin.
install: build
install -Dm755 _build/native/release/build/main/main.exe "$HOME/.local/bin/orbit"