From e6189cdf7c2024d04ad7f3c5b21274010d332924 Mon Sep 17 00:00:00 2001 From: Jeff Larson Date: Sun, 19 Jul 2026 08:09:59 -0700 Subject: [PATCH] ci: disable rust-cache target/ caching (sccache covers compile reuse) Self-hosted homelab runners restore rust-cache (incl. target/) over the home uplink every job, which is slow. The job already uses sccache backed by in-cluster Redis (RUSTC_WRAPPER: sccache) for compile reuse, so caching target/ is both redundant and the slow part. cache-targets: false shrinks the cache to ~/.cargo; sccache still covers compile reuse. Co-Authored-By: Claude Opus 4.8 Claude-Session: https://claude.ai/code/session_013cYVqzH7Xfwea7fAozdQK7 --- .github/workflows/rust.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 3b67e52..18a80d4 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -53,6 +53,7 @@ jobs: # starting from the previous lockfile). sccache is the fallback for real misses. shared-key: protector cache-all-crates: "true" + cache-targets: false - name: Install sccache # --force: rust-cache restores cargo's "already installed" metadata on a warm # cache, but not the binary, so a plain binstall skips and sccache is absent @@ -102,6 +103,7 @@ jobs: # Same shared-key as `lint` so both jobs restore the one warm target/. shared-key: protector cache-all-crates: "true" + cache-targets: false - name: Install sccache run: cargo binstall --no-confirm --force sccache - uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4