mirror of
https://github.com/digital-asset/daml.git
synced 2024-09-20 01:07:18 +03:00
Fix caching on Linux and MacOS (#6270)
When bumping the cache url on Windows, I accidentally also changed the URL we push to on Linux and MacOS. This is obviously a bad idea so this PR fixes it. changelog_begin changelog_end
This commit is contained in:
parent
8bdcfec0cb
commit
aac1e16794
@ -48,7 +48,10 @@ if [ ! -z "${BAZEL_CONFIG_DIR:-}" ]; then
|
||||
cd "$BAZEL_CONFIG_DIR"
|
||||
fi
|
||||
|
||||
CACHE_URL="https://storage.googleapis.com/daml-bazel-cache"
|
||||
|
||||
if is_windows; then
|
||||
CACHE_URL="$CACHE_URL/v1"
|
||||
echo "build --config windows" > .bazelrc.local
|
||||
echo "build --config windows-ci" >> .bazelrc.local
|
||||
|
||||
@ -81,5 +84,5 @@ if [[ "${IS_FORK}" = False ]]; then
|
||||
echo "$GOOGLE_APPLICATION_CREDENTIALS_CONTENT" > "$GOOGLE_APPLICATION_CREDENTIALS"
|
||||
unset GOOGLE_APPLICATION_CREDENTIALS_CONTENT
|
||||
export GOOGLE_APPLICATION_CREDENTIALS
|
||||
echo "build --remote_http_cache=https://storage.googleapis.com/daml-bazel-cache/v1 --remote_upload_local_results=true --google_credentials=${GOOGLE_APPLICATION_CREDENTIALS}" >> .bazelrc.local
|
||||
echo "build --remote_http_cache=$CACHE_URL --remote_upload_local_results=true --google_credentials=${GOOGLE_APPLICATION_CREDENTIALS}" >> .bazelrc.local
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user