From 17a079c2fb96c44f25d6392389db22a7f424f8f1 Mon Sep 17 00:00:00 2001 From: will Date: Thu, 26 Feb 2026 14:52:35 +0000 Subject: [PATCH] ci: fix vcpkg tools cache key collision between windows matrix jobs The standard and fuzz matrix jobs share the same github.job value (windows-native-dll), so both try to save the vcpkg tools cache with the same key. Since the tools are identical across build types, let them share a single cache entry by restricting the save to the standard job only. --- .github/workflows/ci.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ebd0986bdf2..0c2e52d282c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -296,7 +296,8 @@ jobs: - name: Save vcpkg tools cache uses: actions/cache/save@v5 - if: github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch && steps.vcpkg-tools-cache.outputs.cache-hit != 'true' + # Only save cache from one job as they share tools. If the matrix is expanded to jobs with unique tools, this may need amending. + if: github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch && steps.vcpkg-tools-cache.outputs.cache-hit != 'true' && matrix.job-type == 'standard' with: path: C:/vcpkg/downloads/tools key: ${{ github.job }}-vcpkg-tools-${{ github.run_id }}