Skip to main content

Module build

Module build 

Source
Expand description

litz build: a project’s own build recipe, in TOML.

Litz does not ship a compiler. A board’s toolchain changes faster than a simulator should, and pinning Arduino cores or ESP-IDF inside this binary would make every project’s build depend on our release schedule. Instead a project writes litz.build.toml, the same way it writes litz.toml: a short, ordered list of shell steps, each with its own directory, environment and timeout. litz build runs them; litz test --build runs them first.

The recipe is deliberately close to a CI job, because that is where most firmware is built. It is not a sandbox: a step runs with the user’s permissions, exactly like make or a GitHub Actions run: line, and the only path rule is that a step’s working directory must stay inside the project.

Structs§

BuildConfig
BuildSection
Step

Constants§

FILE
The file a project writes.

Functions§

run
Run a project’s recipe. Returns a transcript; an error means a step failed or the recipe could not be loaded.