Skip to content

Commit 176982b

Browse files
authored
workflow: windows: Make more rigid handling for caches (#7780)
* workflows: windows: Use restore-keys element for surely restoring Signed-off-by: Hiroshi Hatake <[email protected]> * workflows: windows: Use the cache primary key as-is Thie is because it has been already used Windows-$arch-vcpkg-%Y%m%d style. No needed to append additional %Y%m%d suffix. Signed-off-by: Hiroshi Hatake <[email protected]> --------- Signed-off-by: Hiroshi Hatake <[email protected]>
1 parent d729c1a commit 176982b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/call-build-windows.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,9 @@ jobs:
130130
with:
131131
path: |
132132
C:\vcpkg\packages
133-
key: ${{ runner.os }}-${{ matrix.config.arch }}-vcpkg
133+
key: ${{ runner.os }}-${{ matrix.config.arch }}-vcpkg-${{ steps.get-date.outputs.date }}
134+
restore-keys: |
135+
${{ runner.os }}-${{ matrix.config.arch }}-vcpkg-
134136
enableCrossOsArchive: false
135137

136138
- name: Build openssl with vcpkg
@@ -149,7 +151,7 @@ jobs:
149151
with:
150152
path: |
151153
C:\vcpkg\packages
152-
key: ${{ steps.cache-vcpkg-sources.outputs.cache-primary-key }}-${{ steps.get-date.outputs.date }}
154+
key: ${{ steps.cache-vcpkg-sources.outputs.cache-primary-key }}
153155
enableCrossOsArchive: false
154156

155157
- name: Build Fluent Bit packages

0 commit comments

Comments
 (0)