Skip to content

Commit 7a74fac

Browse files
committed
enable vcpkg caching for tsdk builds
1 parent 47a2793 commit 7a74fac

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/CI.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,9 +43,15 @@ jobs:
4343
with:
4444
vcpkgJsonGlob: './deps/ziti-tunnel-sdk-c/vcpkg.json'
4545

46+
- uses: actions/cache@v5
47+
with:
48+
key: vcpkg_cache_${{ matrix.spec.name }}
49+
path: ./deps/ziti-tunnel-sdk-c/${{ matrix.spec.name }}/vcpkg_cache
50+
4651
- name: ${{ matrix.spec.name }}
4752
env:
4853
TOOLCHAIN: ${{ matrix.spec.toolchain && format('../../toolchains/{0}.cmake', matrix.spec.toolchain) || '' }}
54+
VCPKG_BINARY_SOURCES: "clear;files,/github/workspace/deps/ziti-tunnel-sdk-c/${{ matrix.spec.name }}/vcpkg_cache,readwrite"
4955
run: |
5056
(cd deps/ziti-tunnel-sdk-c && git fetch --tags)
5157
cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DTLSUV_TLSLIB=openssl -DEXCLUDE_PROGRAMS=ON -DVCPKG_INSTALL_OPTIONS="--overlay-ports=./deps/vcpkg-overlays/json-c" -DZITI_TUNNEL_BUILD_TESTS=OFF -DCMAKE_TOOLCHAIN_FILE="${TOOLCHAIN}" -S ./deps/ziti-tunnel-sdk-c -B ./deps/ziti-tunnel-sdk-c/${{ matrix.spec.name }}

0 commit comments

Comments
 (0)