Skip to content

Commit 6c4592e

Browse files
committed
test new unique cache key
1 parent e2b0344 commit 6c4592e

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
${{ github.workspace }}/vcpkg/packages
2828
${{ github.workspace }}/vcpkg/downloads
2929
${{ github.workspace }}/build/vcpkg_installed
30-
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
30+
key: vcpkg-${{ runner.os }}-${{ github.job }}-${{ hashFiles('vcpkg.json') }}
3131
restore-keys: |
3232
vcpkg-${{ runner.os }}-
3333
@@ -50,14 +50,14 @@ jobs:
5050
ls -l artifacts/libs || true
5151
5252
- name: Save vcpkg cache
53-
if: always()
53+
if: ${{ runner.os == 'Linux' && github.job == 'build' }}
5454
uses: actions/cache/save@v5
5555
with:
5656
path: |
5757
${{ github.workspace }}/vcpkg/packages
5858
${{ github.workspace }}/vcpkg/downloads
5959
${{ github.workspace }}/build/vcpkg_installed
60-
key: vcpkg-${{ runner.os }}-${{ hashFiles('vcpkg.json') }}
60+
key: vcpkg-${{ runner.os }}-${{ github.job }}-${{ hashFiles('vcpkg.json') }}
6161

6262
- uses: actions/upload-artifact@v7
6363
with:

0 commit comments

Comments
 (0)