From abc37dee4e525b5b041d0a6a73a84a273703dffb Mon Sep 17 00:00:00 2001 From: Xevion Date: Thu, 24 Jul 2025 00:57:48 -0500 Subject: [PATCH] ci: fix vcpkg cache keys to use target for platforms with multiple targets, allow restore oldkey --- .github/workflows/build.yaml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 14b56d8..bf6665c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -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'