Developer documentation
Marin is a build toolchain, and almost everything happens on GitHub
Actions. This page is the map; the repository's
docs/ directory is the authority, and every command
below has a fuller reference there.
Building
The entry point is ./build.sh. On a Debian 13 host with
root (or Docker) it can run everything; elsewhere — and always in CI
— the heavy stages run inside a privileged
debian:trixie container:
./build.sh setup # check the host tools
./build.sh validate # static validation — no network, no builds
./build.sh iso # fetch → verify → patch → package → live-build Nothing upstream is committed to the repository: the build fetches the locked snapshot, verifies it, applies the downstream patches as quilt series, builds the Debian packages and assembles the installation ISO. The heavy lifting runs in the release workflow on GitHub Actions; on a suitable Debian host the same commands run locally.
Dependencies: the lock and the durable store
upstream/sources.lock.yaml pins the exact snapshot:
source repositories by commit, binary packages by version, size and
SHA-256, under the upstream archive's signing key. Ordinary builds
verify what it pins — they never move it.
Nightly archives rotate, so the verified binaries are additionally
kept in a durable store: a release of this
repository's own, upstream-store-<lock-hash>, whose
assets future builds restore when the live archive no longer carries
a pinned version. Acquisition order on every build: local cache →
durable store → live archive, SHA-256-checked all the way.
Moving to a new snapshot is a deliberate operation —
./build.sh update resolves each repository's newest
revision from the remote itself, re-verifies that every downstream
patch still applies, refreshes the binary pins from the signed
archive, and leaves the result for review. Each release run
refreshes the store of the committed lock as part of building.
Incremental builds
Every compiled component is checkpointed the moment it builds, with the fingerprints of its actual inputs (upstream commit, patches, packaging, consumed assets) and its toolchain. Later builds reuse a component when its fingerprints still match:
- a failed run resumes from its checkpoints — nothing compiles twice;
- an ISO assembly failure costs no recompilation at all (
--iso-only); - a wallpaper change rebuilds the branding package and nothing else;
- documentation and website changes invalidate nothing.
Build integrity
Every build verifies what it consumes: upstream archive signatures, pinned SHA-256 digests and sizes, patch applicability against the pinned commits, package verification of each built component, and the image's recorded checksum. The release gates additionally check that the image ships exactly the locked package set before anything is published. Beyond that, installation and runtime verification are performed manually by the maintainer — a green build is never presented as proof of a working installation.
Releases
The release is created by the manually triggered release workflow only after the build and its integrity gates pass. It ships the image and its checksum, the package manifest, the SBOM and notices, and the corresponding-source bundle. The details: docs/release.md.
This website
The site is an Astro project under web/, built and
deployed by its own workflow, independent of the OS build. It must
never fabricate: download links appear when releases exist, and
screenshots come only from real machines.