Start using nix-fast-build in github action CI #304
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.
task.py
to ghaf-infra flake.#checks
task.py
nix-fast-build.sh
helper to run relevant flake builds with nix-fast-build to execute all evaluation/build operations completely on the remote builder. Add relevant dependencies to nixdevshell
.nix-fast-build.sh
from github action workflowtest-ghaf-infra.yml
: run all checks and build relevant x86 and aarch targets on remote. This adds some new checks too: the workflow now also builds all azure nixosConfigurations, as well as runs the.#checks
on aarch64.Note: after this change, cachix cache on the
test-ghaf-infra.yml
workflow is used only to cache the ghaf-infradevshell
dependencies. This is to make thetest-ghaf-infra.yml
faster by not having to download the build closure to the github-hosted runner. Rationale is that local builds of all the ghaf-infra nixosConfigurations are likely rare, and when required,nix-fast-build.sh
can be used locally too (in which case the remote builder's local nix store would be used as a 'shared cache').Example run of
test-ghaf-infra.yml
workflow with the changes from this PR: https://github.com/henrirosten/ghaf-infra/actions/runs/11854339487