ci: fix vcpkg cache keys to use target for platforms with multiple targets, allow restore oldkey

This commit is contained in:
2025-07-24 00:57:48 -05:00
parent 1ae7839275
commit abc37dee4e

View File

@@ -45,9 +45,10 @@ jobs:
uses: actions/cache@v4
with:
path: target/vcpkg
key: ${{ runner.os }}-vcpkg-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
key: vcpkg-${{ runner.os }}-${{ matrix.target }}-${{ hashFiles('Cargo.toml', 'Cargo.lock') }}
restore-keys: |
${{ runner.os }}-vcpkg-
${{ runner.os }}-vcpkg
vcpkg-${{ runner.os }}-${{ matrix.target }}-
- name: Vcpkg Linux Dependencies
if: runner.os == 'Linux'