Add justfile for native and container workflows
CI / check (push) Successful in 10s
CI / native (push) Successful in 1m17s

Expose native build, run, install, check, test, probe and smoke recipes. Build the OCI image before container launch or desktop installation, and document optional just usage.
This commit is contained in:
nandi committed 2026-11-22 22:05:07 -08:00
1 parent 2104bbaf3b
commit 0760d7ba6c
2 files changed
+91

No files matched your search

+21
View File
@@ -124,6 +124,27 @@ avoid a dependency and a move to `AdwApplication`.
## Building
### Task runner (optional)
With [just](https://just.systems) installed, run `just` to list the available
recipes:
```sh
just # show commands; does not build or install anything
just build # native release build
just run # build and run the native GUI
just test # portable model and container/desktop tests
just check # native type-check and MoonBit formatting check
just install # build and install the native app for your user
just container-install # build the OCI image and install its desktop launcher
just container-run # build and run the OCI image without installing it
```
There are also `fmt`, `probe`, `test-container` and `smoke [prefix]`
recipes. Native installation respects `XDG_DATA_HOME`; container recipes
respect `MOONMIX_IMAGE`. The equivalent commands and dependencies are
documented below.
### Dependencies
You need MoonBit (`curl -fsSL https://cli.moonbitlang.com/install/unix.sh | bash`,