ci(nix): build the development shell into the Cachix cache - #47
Open
Joibel wants to merge 1 commit into
Open
Conversation
This was referenced Jul 30, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Based on PR #46
Chain of upstream PRs as of 2026-07-30
PR build(nix): one tools-only flake at the repo root #46:
nix-stack-base←tb-ufbi.1-pr1tb-ufbi.1-pr1←tb-ufbi.2-pr2Fixes #TODO
Motivation
Modifications
Verification
Documentation
AI
🤖 Generated with Claude Code
https://claude.ai/code/session_01H871PuNyYPzjmpUhXCRXGA