[Backport release-25.05] workflows: use cachix consistently#435321
Merged
wolfgangwalther merged 7 commits intorelease-25.05from Aug 20, 2025
Merged
[Backport release-25.05] workflows: use cachix consistently#435321wolfgangwalther merged 7 commits intorelease-25.05from
wolfgangwalther merged 7 commits intorelease-25.05from
Conversation
This allows setting up a custom cachix cache in a contributor's fork. That's most valuable when working on CI itself, testing and interating in a fork. It's required when working on cachix related features directly. (cherry picked from commit 0254249)
Pushing the source path to cachix is pointless, because the only source we're using is Nixpkgs - and that will always be available already via checkout. No need to ever substitute it, so no need to push it either. (cherry picked from commit 2400bdf)
For PRs targeting a fast moving branch like master, it might not actually help because the merge commit will still be different on each run. But on slower moving branches or when testing in a fork, it can speed things up. Since each of these build results is only a few hundred bytes without any dependencies, it has essentially no cost. Not adding this to `treefmt`, because this looks at *all* the files in the repo, so needs to re-run even when iterating on CI only. (cherry picked from commit 6ee40e7)
Speeds up evaluation a bit, because `filtered head` doesn't need to be evaluated 3x. (cherry picked from commit c4fa63d)
nixpkgs-vet doesn't care about our CI infrastructure, so ignoring these files will lead to more cache hits when iterating on CI related PRs. (cherry picked from commit 4d996cf)
At this stage, this only allows faster iteration when working on CI in forks. (cherry picked from commit 795dd01)
By definition the tarball changes on every commit, so it makes no sense to cache it - it will just waste disk space. (cherry picked from commit ac93865)
2 tasks
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.
Bot-based backport to
release-25.05, triggered by a label in #435294.