From 2a63c526004cfc46abfbb46cc998c7ee207bf0f3 Mon Sep 17 00:00:00 2001 From: Dan Tasse Date: Thu, 1 Oct 2026 15:49:40 -0500 Subject: [PATCH] ci(node): share the linux job's Rust cache with the arrow-compat legs rust-cache keys on the job id, so the new job built cold every run (about 7.5 min) while the linux job restored a cache and built in 2 min. Point the arrow-compat legs at the linux job's key; they build the same crate with the same profile. Co-Authored-By: Claude Fable 5.1 --- .github/workflows/nodejs.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index aa281034c..2e290166e 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -194,6 +194,10 @@ jobs: cache-dependency-path: nodejs/pnpm-lock.yaml - uses: Swatinem/rust-cache@v2 with: + # Same crate, profile and target as the `linux` job above, so reuse + # its cache: rust-cache keys on the job id by default, and this job + # would otherwise start cold on every run until it had saved its own. + shared-key: linux save-if: ${{ github.ref == 'refs/heads/main' }} - name: Install dependencies run: |