feat: the builder: layout JSON in, firmware and its source out #1
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/builder"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The builder: a Studio layout as JSON in, firmware and a zip of its source out.
build: writes the layout's keymap folder into a QMK checkout, compiles it withqmk compile(3 minute limit, one build at a time), and hands back the firmware with a source zip (layout, keymap folder,BUILDING.mdwith the exact commits) for the GPL. Layouts with ZSA's modules build on ZSA's fork, both Moonlander revisions unless one is asked for. Nothing is left in the checkout.build.Handler:POST /buildandGET /healthfor keybars.app's Worker. 422 with the reason for a layout that can't be built, 422 with the end of QMK's output for a failed compile, 503 while a build runs; unknown fields are refused.cmd/builder:builder servein the container,builder build layout.jsonhere.qmk.Fetcher.Dirreadsqmk generate-api's output from disk, so builds need no network.Tests stand the test binary in for qmk. Real builds of an Oryx Voyager and Moonlander pass in the image (next PR).