Skip to content

Commit 03df3c0

Browse files
committed
include tsdk version in vcpkg cache key
1 parent b580a88 commit 03df3c0

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/CI.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ jobs:
4949
env:
5050
KEY_PREFIX: vcpkg_cache-${{ matrix.spec.toolchain }}
5151
run: |
52-
common_key="${KEY_PREFIX}-vcpkg_json_md5=$(md5sum ./deps/ziti-tunnel-sdk-c/vcpkg.json | awk '{ print $1 }')"
53-
echo "key=${common_key}-ImageVersion=${ImageVersion}" | tee -a $GITHUB_OUTPUT
52+
tsdk_ver=$(cd ./deps/ziti-tunnel-sdk-c/ && git describe --long --tag ./deps/ziti-tunnel-sdk-c)
53+
common_key="${KEY_PREFIX}-tsdk_ver=${tsdk_ver}-vcpkg_json_md5=$(md5sum ./deps/ziti-tunnel-sdk-c/vcpkg.json | awk '{ print $1 }')"
54+
echo "key=${common_key}-ImageVersion=${ImageVersion}" | tee -a $GITHUB_OUTPUT
55+
echo todo add git describe --long --tag from deps/ziti-tunnel-sdk-c
5456
5557
- uses: actions/cache@v5
5658
with:

0 commit comments

Comments
 (0)