Cached checks, cachix push, and the cache declared for consumers - #1
Merged
Merged
Conversation
The two-job check.yml becomes the three-file set the other public repositories run: main's copy with the cached store, the two-hop trusted build for pull requests, and the push of the kept roots' closure to the clhodapp cache; the request's own copy, building only when .github/ changed; and the close-time cache cleanup. nixConfig declares the cache and its upstreams for direct evaluation, and the README states the three substituters and keys a consumer needs. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
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.
Brings flake-sync in line with the other public repositories on
caching and the binary cache.
check.yml(package + format, VM lifecycle)becomes the three-file set the other public repositories run:
check.yml, main's copy, with the cached store, the two-hop trustedbuild for pull requests, the priority-pruned union entry, and the
push of the kept roots' closure to the
clhodappcache from thecachixenvironment;check-pr.yml, the request's own copy,building only when
.github/changed; andcache-cleanup.ymlatclose. One job runs
nix flake check, which covers what the two jobsdid. Timeouts are 30 minutes; the VM lifecycle test took about seven
on a cold runner.
nixConfigdeclares theclhodappcache and its two upstreams,honored when the flake is evaluated directly and the settings are
accepted, as the other public flakes do.
the three substituters and keys a consumer needs.
actionlint passes on all three workflows;
nix flake check --no-buildevaluates clean;
nix fmtis clean. Because this changes.github/,check-prbuilds it; the firstmainrun after merge is the firstpush to the cache.
🤖 Generated with Claude Code