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:
Willem Vanhulle committed 2026-11-04 18:17:41 +01:00
1 parent d0833ad563
commit 8230de065f
4 files changed
+113 -43

No files matched your search

+2 -2
View File
@@ -36,10 +36,10 @@ steps:
commands:
- git remote set-url origin "https://wvhulle:$${CODEBERG_TOKEN}@codeberg.org/$${CI_REPO}.git"
- git checkout -B main "$${CI_COMMIT_SHA}"
- nix run .#release-plz-release
- nix run --quiet .#release-plz-release
- name: update-release-pr
image: nixos/nix:latest
environment: *release_env
commands:
- nix run .#release-plz-release-pr
- nix run --quiet .#release-plz-release-pr