Skip to content

Commit f3374b8

Browse files
committed
use the same cache when building locally
1 parent b5868bb commit f3374b8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

scripts/ziti-builder.sh

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ function set_workspace(){
7070
--volume "${REPODIR}:${WORKSPACE}" \
7171
"${ZITI_SDK_DIR:+--volume=${ZITI_SDK_DIR}:${ZITI_SDK_DIR}}" \
7272
--platform "linux/amd64" \
73-
--env "VCPKG_DEFAULT_BINARY_CACHE=${WORKSPACE}/.cache" \
73+
--env "VCPKG_BINARY_SOURCES=clear;files,${WORKSPACE}/vcpkg_cache,readwrite" \
7474
--env "TLSUV_TLSLIB" \
7575
--env "ZITI_SDK_DIR" \
7676
--env "ZITI_SDK_VERSION" \
@@ -119,10 +119,10 @@ function main() {
119119
exec "${@}"
120120
else
121121
[[ -d ./build ]] && rm -rf ./build
122-
[[ -d ./.cache ]] || mkdir -v ./.cache
122+
mkdir -pv ./vcpkg_cache
123123
cmake \
124124
-E make_directory \
125-
./build
125+
./build
126126
cmake \
127127
--preset "${CMAKE_PRESET:-ci-linux-x64}" \
128128
-DCMAKE_BUILD_TYPE="${CMAKE_CONFIG:-Release}" \

0 commit comments

Comments
 (0)