ci: always run cachix on master push#14
Merged
Merged
Conversation
The Nix derivation pins version = self.shortRev and src = self, so every commit on master changes the store path — including commits the previous paths filter skipped (workflows, docs, brew bottle bumps). That left the binary cache one or more revs behind master and made nssh users build from source on every flake update. Cachix builds finish in under two minutes per system, so always running on master is the simpler durable fix vs. trying to keep the paths filter in sync with every input the derivation actually sees.
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.
Summary
paths:filter on.github/workflows/cachix.yamlso every push tomasterbuilds and pushes a binary to the abizer cachix cache.version = self.shortRevandsrc = self, so every commit on master produces a fresh store-path hash — including the ones the previous filter skipped (release workflows, brew bottle updates, README/doc-only changes).Why drop the filter instead of widening it
x86_64-linux+aarch64-darwin.Test plan
abizer.cachix.org.nix build .#packages.aarch64-darwin.defaulton the new rev should be a pure cache fetch (no local compile).🤖 Generated with Claude Code
Note
Low Risk
Low risk: this only changes GitHub Actions trigger conditions, but it may increase CI workload/cost by running on every
masterpush.Overview
Removes the
paths:filter from.github/workflows/cachix.yamlso the Cachix build runs on every push tomaster(and via manual dispatch), rather than only when certain files change.This ensures the Nix build is executed and pushed to cache for all commits, including doc-only or release-related changes that previously skipped the workflow.
Reviewed by Cursor Bugbot for commit 504eca8. Bugbot is set up for automated code reviews on this repo. Configure here.