Watch
0
0
Fork
You've already forked hyperhive
0

public-cache: build and push the cargo dependency closures

This commit is contained in:
maia 2026-11-30 20:42:47 +01:00 • committed by mara
commit 7240c148f4
2 changed files with 11 additions and 1 deletions

View file

@ -21,9 +21,11 @@ jobs:
runs-on: nixos
steps:
- uses: actions/checkout@v3
- name: build the deployed closures
- name: build the deployed closures and the cargo dependencies they build from
run: |
nix build \
.#cargo-deps \
.#cargo-deps-bin \
.#default \
.#swarm-controller \
.#swarmctl \

View file

@ -299,6 +299,14 @@ in
# is exposed too since it's independently useful/inspectable.
inherit swagger-ui-dist swagger-ui-theme;
# The crane dependency builds the Rust packages and checks start from, as
# outputs of their own so the public cache job can build and push them:
# without them a consumer of the cache recompiles every crate dependency.
# `cargo-deps-bin` is what the deployed binaries build from (no test
# targets), `cargo-deps` what the checks build from. Neither is in `default`.
cargo-deps = rust.cargoArtifacts;
cargo-deps-bin = rust.cargoArtifactsBinOnly;
# `vale` preconfigured with .vale.ini and the pinned style packages
# (./vale.nix, ./vale-styles.nix); the prose-lint CI jobs and the devshell run it.
vale = pkgs.callPackage ./vale.nix { };