Skip to content

Commit

Permalink
workflows: windows: Introduce cache/restore mechanism for vcpkg sources
Browse files Browse the repository at this point in the history
Signed-off-by: Hiroshi Hatake <[email protected]>
  • Loading branch information
cosmo0920 committed Jul 31, 2023
1 parent dcecbef commit 0ae49a8
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/call-build-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,14 @@ jobs:
with:
arch: ${{ matrix.config.arch }}

- name: Restore cached packages of vcpkg
id: cache-vcpkg-sources
uses: actions/cache/restore@v3
with:
path: |
C:\vcpkg\packages
key: ${{ runner.os }}-${{ matrix.config.arch }}-vcpkg

- name: Build openssl with vcpkg
run: |
C:\vcpkg\vcpkg install --recurse openssl --triplet ${{ matrix.config.vcpkg_triplet }}
Expand All @@ -122,6 +130,14 @@ jobs:
C:\vcpkg\vcpkg install --recurse libyaml --triplet ${{ matrix.config.vcpkg_triplet }}
shell: cmd

- name: Save packages of vcpkg
id: save-vcpkg-sources
uses: actions/cache/save@v3
with:
path: |
C:\vcpkg\packages
key: ${{ steps.cache-vcpkg-sources.outputs.cache-primary-key }}

- name: Build Fluent Bit packages
# If we are using 2.0.* or earlier we need to exclude the ARM64 build as the dependencies fail to compile.
# Trying to do via an exclude for the job triggers linting errors.
Expand Down

0 comments on commit 0ae49a8

Please sign in to comment.