Repository navigation
Commit c764998
authored
perf(ci): pin Rust deps with a GC root so the sticky disk keeps them (#1274)
The linux native build rebuilt the entire crate dependency set (~190s) on every
run, even though the `ccusage-deps` derivation hash is identical across runs.
The crane cargoArtifacts path has no GC root once the final binary is built, so
the Blacksmith sticky disk drops it on commit and the next run recompiles all
deps from scratch.
Expose the static build's `cargoArtifacts` via passthru and, after the build,
pin it with a GC root under the mounted Nix store
(`/nix/ccusage-ci-gcroots/deps`). The root persists with the sticky disk, so the
deps stay warm and subsequent runs should reuse them instead of rebuilding.1 parent b80d71b commit c764998
2 files changed
Lines changed: 24 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
29 | 46 | | |
30 | 47 | | |
31 | 48 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
72 | 72 | | |
73 | 73 | | |
74 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
75 | 82 | | |
76 | 83 | | |
77 | 84 | | |
| |||
0 commit comments