Skip to content

Commit fa9b08b

Browse files
committed
Revert "perf(ci): pin Rust deps with a GC root so the sticky disk keeps them (#1274)"
This reverts commit c764998.
1 parent c764998 commit fa9b08b

2 files changed

Lines changed: 0 additions & 24 deletions

File tree

‎.github/actions/build-linux-native-package/action.yaml‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,23 +26,6 @@ runs:
2626
nix build .#ccusage-static --print-build-logs
2727
fi
2828
29-
# Pin the deps-only artifacts with a GC root that lives on the mounted Nix
30-
# store (the Blacksmith sticky disk). Without a root the crane cargoArtifacts
31-
# path is unreferenced once the binary is built, so the sticky disk drops it
32-
# and the next run rebuilds all dependencies (~190s). The root persists with
33-
# the disk, keeping the deps warm across runs.
34-
- name: Pin dependency cache root
35-
shell: bash
36-
env:
37-
NIX_GITHUB_TOKEN: ${{ inputs.nix-github-token }}
38-
run: |
39-
mkdir -p /nix/ccusage-ci-gcroots
40-
if [ "$NIX_GITHUB_TOKEN" = "false" ]; then
41-
NIX_CONFIG="access-tokens =" nix build '.#ccusage-static.cargoArtifacts' --out-link /nix/ccusage-ci-gcroots/deps
42-
else
43-
nix build '.#ccusage-static.cargoArtifacts' --out-link /nix/ccusage-ci-gcroots/deps
44-
fi
45-
4629
- name: Verify Linux binary is static
4730
shell: bash
4831
env:

‎nix/static-package.nix‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -72,13 +72,6 @@ in
7272
staticCommonArgs
7373
// {
7474
cargoArtifacts = staticCargoArtifacts;
75-
# Expose the deps-only artifacts so CI can pin them with a GC root and
76-
# keep them on the Blacksmith sticky disk across runs; otherwise the
77-
# store path is unreferenced once the binary is built and gets pruned,
78-
# forcing a full ~190s dependency rebuild on every run.
79-
passthru = {
80-
cargoArtifacts = staticCargoArtifacts;
81-
};
8275
# A PT_INTERP header means the binary requests a dynamic loader,
8376
# so it would not run on end-user machines without the build-time
8477
# loader path. READELF is exported by the cross bintools wrapper.

0 commit comments

Comments
 (0)