Re-enable “Nix development cache” workflow #5625
Merged
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.
Overview
This re-enables some automatic running of Nix build & cache population.
Unlike before it was disabled, this doesn’t run on PRs, only on release branches and trunk. The former lets us pin releases for quick comparisons and downstream usage, while the latter keeps the dev tools up-to-date and gives us an early warning if the Nix build breaks (without getting in the way of PRs).
It’s still possible to run manually, which is helpful to test PRs like this, which affect the Nix tooling, as well as ensuring that Nix tooling changes are propagated to the cache before they’re merged into trunk.
Implementation notes
This also has a couple other non-cache-breaking changes, like separating out the Nix documentation from other dev docs as well as separating out the tool versions and referencing them from the docs as well.
Test coverage
This re-enables the testing of the Nix build in CI, but in a less obtrusive way than before.
Loose ends
There are other Nix changes that have been waiting, like #5486, but this is a low-effort improvement that is worth getting in before those anyway.
Also, it might be useful to have this workflow automatically trigger on changes to paths matching “nix” and a couple others that are referenced by the Nix build, but I think this is good for now.