Skip to content

ci(nix): build the development shell into the Cachix cache - #47

Open
Joibel wants to merge 1 commit into
tb-ufbi.1-pr1from
tb-ufbi.2-pr2
Open

ci(nix): build the development shell into the Cachix cache#47
Joibel wants to merge 1 commit into
tb-ufbi.1-pr1from
tb-ufbi.2-pr2

Conversation

@Joibel

@Joibel Joibel commented Jul 30, 2026

Copy link
Copy Markdown
Owner

Based on PR #46

Chain of upstream PRs as of 2026-07-30

Fixes #TODO

Motivation

Modifications

Verification

Documentation

AI

🤖 Generated with Claude Code

https://claude.ai/code/session_01H871PuNyYPzjmpUhXCRXGA

The flake pins tools that only this project builds, so nothing public
caches them: every contributor, dev container and CI job that enters the
shell compiles the same derivations from scratch. Point them all at the
`argo-workflows` Cachix cache instead, and keep it stocked.

A composite action installs Nix and configures the cache, so the
installer version and the cache name live in one place rather than in
every job that will start using the shell. It pulls by default and only
pushes when the caller hands it a token, which is how a fork pull
request — where secrets are not available — stays read-only without
having to say so.

The workflow builds the shell on the two platforms people develop on.
Linux runs on pull requests too, so a toolchain change is proven before
it lands rather than after; macOS is left out of those because of what
the runner costs, and warms the cache once the change is merged. The
weekly schedule covers the case where nothing changes but the cache
expires underneath us anyway.

Nothing consumes the cache yet: converting CI jobs, the dev container
and the release to the shell comes next.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Signed-off-by: Alan Clucas <alan@clucas.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant