55
55
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
56
56
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
57
57
export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
58
+ else
59
+ export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
58
60
fi
59
61
set -x -e
60
62
echo "Bring /usr/bin to front as GitHub does not use system python3 by default"
75
77
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
76
78
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
77
79
export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
80
+ else
81
+ export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
78
82
fi
79
83
set -x -e
80
84
bash -x -e .github/workflows/build.space.sh
93
97
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
94
98
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
95
99
export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
100
+ else
101
+ export BAZEL_OPTIMIZATION="--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
96
102
fi
97
103
set -x -e
98
104
bash -x -e .github/workflows/build.space.sh
@@ -112,6 +118,8 @@ jobs:
112
118
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
113
119
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
114
120
export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
121
+ else
122
+ export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
115
123
fi
116
124
set -x -e
117
125
echo "Bring /usr/bin to front as GitHub does not use system python3 by default"
@@ -223,6 +231,8 @@ jobs:
223
231
if [[ "${EVENT_NAME}" == "push" && "${REPO_NAME}" == "tensorflow/io" ]]; then
224
232
printf '%s\n' "${GCP_CREDS}" >service_account_creds.json
225
233
export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
234
+ else
235
+ export BAZEL_OPTIMIZATION="${BAZEL_OPTIMIZATION} --remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
226
236
fi
227
237
set -x -e
228
238
bash -x -e .github/workflows/build.space.sh
@@ -333,9 +343,11 @@ jobs:
333
343
set "BAZEL_OPTIMIZATION=--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=true --google_credentials=service_account_creds.json"
334
344
) else (
335
345
echo %REPO_NAME%
346
+ set "BAZEL_OPTIMIZATION=--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
336
347
)
337
348
) else (
338
349
echo %EVENT_NAME%
350
+ set "BAZEL_OPTIMIZATION=--remote_cache=https://storage.googleapis.com/tensorflow-sigs-io --remote_upload_local_results=false"
339
351
)
340
352
@echo on
341
353
set /P BAZEL_VERSION=< .bazelversion
0 commit comments