Skip to content

Commit

Permalink
workflow: windows: Make more rigid handling for caches (#7780)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
cosmo0920 authored and leonardo-albertovich committed Oct 5, 2023
1 parent ac136a9 commit c247be6
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/call-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,9 @@ jobs:
with:
path: |
C:\vcpkg\packages
key: ${{ runner.os }}-${{ matrix.config.arch }}-vcpkg
key: ${{ runner.os }}-${{ matrix.config.arch }}-vcpkg-${{ steps.get-date.outputs.date }}
restore-keys: |
${{ runner.os }}-${{ matrix.config.arch }}-vcpkg-
enableCrossOsArchive: false

- name: Build openssl with vcpkg
Expand All @@ -149,7 +151,7 @@ jobs:
with:
path: |
C:\vcpkg\packages
key: ${{ steps.cache-vcpkg-sources.outputs.cache-primary-key }}-${{ steps.get-date.outputs.date }}
key: ${{ steps.cache-vcpkg-sources.outputs.cache-primary-key }}
enableCrossOsArchive: false

- name: Build Fluent Bit packages
Expand Down

0 comments on commit c247be6

Please sign in to comment.