Skip to content

Commit 2ab3289

Browse files
authored
[ci] Move remote caching for Bazel as a separate config (#5167)
1 parent 758fc34 commit 2ab3289

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.bazelrc

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,11 @@ build:ci --test_tag_filters=-noci
9090
# Print information only about tests executed
9191
build:ci --test_summary=short
9292

93-
# Use GCS Bucket as a remote cache by default.
94-
build:ci --remote_cache=https://storage.googleapis.com/or-tools-github-remote-caching --google_default_credentials
93+
###############################################################################
94+
# Options for remote caching through GCS Bucket.
95+
###############################################################################
96+
build:remote_cache --google_default_credentials
97+
build:remote_cache --remote_cache=https://storage.googleapis.com/or-tools-github-remote-caching
9598

9699
###############################################################################
97100
# Options for asan.

.github/workflows/presubmit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
python-version: ${{env.PYTHON_VERSION}}
4646
- uses: bazel-contrib/setup-bazel@0.19.0
4747
- name: Build
48-
run: bazel test --config=ci //ortools/...
48+
run: bazel test --config=ci --config=remote_cache //ortools/...
4949
shell: bash
5050
###############################################################################
5151
CMake:

0 commit comments

Comments
 (0)