From bb4545ff150ae13528ffa7a2db75ee2441b493d4 Mon Sep 17 00:00:00 2001 From: Drew Newberry Date: Mon, 16 Mar 2026 19:04:34 -0700 Subject: [PATCH] fix(ci): skip remote sccache config for fork PRs (#388) --- .github/workflows/branch-checks.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/branch-checks.yml b/.github/workflows/branch-checks.yml index 6972ecb3a..3d31f6e9f 100644 --- a/.github/workflows/branch-checks.yml +++ b/.github/workflows/branch-checks.yml @@ -7,7 +7,6 @@ env: CARGO_TERM_COLOR: always CARGO_INCREMENTAL: "0" MISE_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - SCCACHE_MEMCACHED_ENDPOINT: ${{ vars.SCCACHE_MEMCACHED_ENDPOINT }} permissions: contents: read @@ -49,6 +48,10 @@ jobs: - name: Install tools run: mise install + - name: Configure sccache remote cache + if: vars.SCCACHE_MEMCACHED_ENDPOINT != '' + run: echo "SCCACHE_MEMCACHED_ENDPOINT=${{ vars.SCCACHE_MEMCACHED_ENDPOINT }}" >> "$GITHUB_ENV" + - name: Cache Rust target and registry uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # v2 with: