From b5fbde7f1c29c9eb69053d18bfbdcd096cdb5c14 Mon Sep 17 00:00:00 2001 From: Lukas Wirth Date: Wed, 15 May 2024 13:31:11 +0200 Subject: [PATCH] Key ignoring the job-id in metrics cache --- src/tools/rust-analyzer/.github/workflows/metrics.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tools/rust-analyzer/.github/workflows/metrics.yaml b/src/tools/rust-analyzer/.github/workflows/metrics.yaml index 9771d120ab9d3..aa776c035e882 100644 --- a/src/tools/rust-analyzer/.github/workflows/metrics.yaml +++ b/src/tools/rust-analyzer/.github/workflows/metrics.yaml @@ -28,7 +28,7 @@ jobs: - name: Restore cargo cache uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 with: - key: ${{ runner.os }}-cargo-${{ github.sha }} + shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} cache-targets: "false" - name: Collect build metrics @@ -37,7 +37,7 @@ jobs: - name: Cache target uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 with: - key: ${{ runner.os }}-cargo-${{ github.sha }} + shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} cache-targets: "true" - name: Upload build metrics @@ -67,7 +67,7 @@ jobs: - name: Restore cargo cache uses: Swatinem/rust-cache@9bdad043e88c75890e36ad3bbc8d27f0090dd609 with: - key: ${{ runner.os }}-cargo-${{ github.sha }} + shared-key: ${{ runner.os }}-cargo-metrics-${{ github.sha }} cache-targets: "true" - name: Collect metrics