Skip to content

Commit a483e39

Browse files
committed
trying to fix cache key issue
1 parent d00c614 commit a483e39

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
uses: actions/cache/restore@v4
3434
with:
3535
path: ${{ github.workspace }}/vcpkg-test-cache
36-
key: vcpkg-test-cache
36+
key: vcpkg-test-cache-${{ github.run_id }}
3737
restore-keys: vcpkg-test-cache
3838

3939
- name: CMake Build
@@ -45,7 +45,7 @@ jobs:
4545
uses: actions/cache/save@v4
4646
with:
4747
path: ${{ github.workspace }}/vcpkg-test-cache
48-
key: vcpkg-test-cache
48+
key: vcpkg-test-cache-${{ github.run_id }}
4949

5050
build:
5151
needs: test
@@ -77,7 +77,7 @@ jobs:
7777
uses: actions/cache/restore@v5
7878
with:
7979
path: ${{ github.workspace }}/vcpkg-${{ matrix.os }}
80-
key: vcpkg-${{ matrix.os }}
80+
key: vcpkg-${{ matrix.os }}-${{ github.run_id }}
8181
restore-keys: vcpkg-${{ matrix.os }}
8282

8383
- name: Ubuntu setup
@@ -97,4 +97,4 @@ jobs:
9797
uses: actions/cache/save@v5
9898
with:
9999
path: ${{ github.workspace }}/vcpkg-${{ matrix.os }}
100-
key: vcpkg-${{ matrix.os }}
100+
key: vcpkg-${{ matrix.os }}-${{ github.run_id }}

0 commit comments

Comments
 (0)