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 }}