CI and Automation
This repo uses GitHub Actions for formatting, docs validation, site deployment, builds, package publishing, and update automation.
Main Workflows
check.yml: flake evaluation, fast flake checks (check-nixup,check-pog-scripts,module-options-nixos,module-options-darwin,agent-remote-eval),jfmt, VitePress docs build, docs helper checks, and the pinned, offline Vale wrapper.publish_ci_tools.yml: publishes signed CI tool closures and manifests when their recipes or pins change onmain.docs.yml: builds and deploys the VitePress docs site to GitHub Pages on pushes tomain.build.yml: evaluates every supported custom package, builds the non-heavy package batch, and pushes it to the cache.host_check.yml: weekly and manually dispatched NixOS host closure build and cache warm (defaults toneptune).foundry.yml: foundry image builds and registry publishing. See foundry for what those outputs are.update.yml: scheduled flake input updates with PR and automerge automation.update_pkgs.yml: metadata-driven package update automation with automerge.refresh_update_prs.yml: rebases open automerge update PRs ontomainwhenmainadvances.todo_reminder.yml: weekly check for datedTODOcomments that have come due.mica.yml: publishes index artifacts formica.
CI Tool Cache
CI looks up tools/<tool>/x86_64-linux/<key>.json on static.g7c.us for ci_cache, jfmt, check-vale, check-doc-links, check-readme-index, nupdate, iets, and skopeo. The key covers the tool's recipe and lockfile. For check-vale, it also covers the bundled vocabulary. The formatter, docs checks, Vale, cache uploader, image copy helper, and package updater restore signed closures from cache.g7c.us and evaluate their packages from the checkout on a cache miss.
The publisher uses the existing Nix cache secrets. For the static manifests, configure JFMT_ENDPOINT_URL, JFMT_ACCESS_KEY_ID, and JFMT_SECRET_ACCESS_KEY as repository secrets. The optional JFMT_S3_BUCKET repository variable defaults to gemologic-static. Dispatch publish_ci_tools.yml on main to backfill manifests.
Docs Quality Gates
check.yml runs on every push to main and every pull request. It evaluates the flake, runs jfmt --ci, builds the VitePress site with bun run docs:build, and runs the link, README index, and Vale checks via .github/scripts/tool-cache.sh. Locally, run the matching commands:
nix flake check --no-build --no-write-lock-file
nix run .#jfmt -- --ci
nix run .#check-doc-links
nix run .#check-readme-index
nix run .#check-vale
cd docs && bun install --frozen-lockfile && bun run docs:buildThe Vale package includes its configured styles, so CI does not download prose-checking dependencies at runtime.
docs.yml runs on pushes to main (or manual dispatch) to build and publish the VitePress site to GitHub Pages.
Package Evaluation and Updates
build.yml skips Nix builds on documentation-only changes, evaluates lib.customPackageDrvPaths.<system> once per platform, and splits __j_custom_targets round-robin into parallel build shards (default 4 on x86_64-linux, 2 on aarch64-darwin, adjustable via BUILD_SHARDS_LINUX/BUILD_SHARDS_DARWIN repository variables or workflow_dispatch inputs). Each shard builds with --keep-going and uploads every realized store path on main even if another package in the shard fails. This catches constructor and dependency errors in heavy packages that are intentionally excluded from __j_custom, without building their full closures. The Linux preflight uses cached iets when available and falls back to native Nix if the cache or evaluation fails. The macOS preflight and the full flake check use native Nix.
Packages opt into update_pkgs.yml by exposing passthru.updateScript. The workflow discovers the current package list from lib.autoUpdatePackages.x86_64-linux, excludes packages marked with meta.skipBuild, and opens one update pull request per package.
Set passthru.skipUpdate = true to exclude a package from automatic updates while keeping its passthru.updateScript available for manual use. Packages without this flag remain eligible for automatic updates.
Third-party GitHub Actions are pinned to commit SHAs. Dependabot continues to track their version updates.
Why This Matters
- catches docs drift and broken links early.
- proves the actual docs site still builds and deploys.
- validates key build surfaces on Linux and macOS.
- automates routine dependency/package maintenance.
Source
.github/workflows/*.yml