Skip to content

Commit 158b046

Browse files
authored
ci(vcpkg): Include preset in binary cache key to avoid ABI mismatches and slow CI builds (#1973)
1 parent f4608df commit 158b046

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,9 @@ jobs:
4343
uses: actions/cache@v4
4444
with:
4545
path: ${{ github.workspace }}\vcpkg-bincache
46-
key: vcpkg-bincache-${{ runner.os }}-${{ hashFiles('vcpkg.json','vcpkg-lock.json') }}
46+
key: vcpkg-bincache-${{ runner.os }}-${{ hashFiles('vcpkg.json','vcpkg-lock.json') }}-${{ inputs.preset }}
4747
restore-keys: |
48+
vcpkg-bincache-${{ runner.os }}-${{ hashFiles('vcpkg.json','vcpkg-lock.json') }}-
4849
vcpkg-bincache-${{ runner.os }}-
4950
5051
- name: Cache VC6 Installation

0 commit comments

Comments
 (0)