ci: separate dependency builds, checks and cache uploads
Build the workspace dependencies in their own step, skipped when they are already in Cachix, so their compile output no longer shares a log with the build, test and lint results. Steps do not share /nix/store, so later steps import the paths exported by that step, on pull requests as well. Push to Cachix in a separate step that alone holds the token and also runs when a build fails. Pass --quiet to nix in all steps, which removes the fetch lists and copying lines while keeping builder logs and errors.
This commit is contained in:
4 files changed
+113
-43
No files matched your search
@@ -30,6 +30,8 @@ let
|
||||
args: craneLib.buildPackage (commonArgs // { inherit cargoArtifacts; } // args);
|
||||
in
|
||||
{
|
||||
workspace-dependencies = cargoArtifacts;
|
||||
|
||||
rustfmt-formatting = craneLib.cargoFmt {
|
||||
inherit (commonArgs) src pname version;
|
||||
cargoExtraArgs = "--all";
|
||||
|
||||
Reference in new issue
Block a user