ci: Fix path input for vcpkg downloads cache

The `path` inputs for the `cache/save` and `cache/restore` actions must
have identical content.
This commit is contained in:
Hennadii Stepanov
2026-05-21 18:49:56 +01:00
parent bd0942bbd9
commit e4f1e43103

View File

@@ -285,9 +285,10 @@ jobs:
# Only save cache from the 'standard' job, as it includes the necessary downloads for other jobs in the matrix. If the matrix is modified, this may need amending.
if: github.event_name != 'pull_request' && github.ref_name == github.event.repository.default_branch && steps.vcpkg-binary-cache.outputs.cache-hit != 'true' && steps.vcpkg-downloads-cache.outputs.cache-hit != 'true' && matrix.job-type == 'standard'
with:
# Cache the tools once as archives, but not redundantly in extracted form.
path: |
~/AppData/Local/vcpkg/downloads/*
!~/AppData/Local/vcpkg/downloads/tools # Cache the tools once as archives, but not redundantly in extracted form.
!~/AppData/Local/vcpkg/downloads/tools
key: ${{ steps.vcpkg-downloads-cache.outputs.cache-primary-key }}
- name: Build