Skip to content

Commit 2093e94

Browse files
authored
Add Bazel cache (#2059)
1 parent 788a7b4 commit 2093e94

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.bazelrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# Public read-only cache
2+
common:public_cache --remote_cache="https://storage.googleapis.com/enzyme-presubmit-bazel-cache/" --remote_upload_local_results=false
3+
4+
# Cache pushes are limited to Enzyme's CI system.
5+
common:public_cache_push --config=public_cache --remote_upload_local_results=true --google_default_credentials
16

27
common --noenable_bzlmod
38

.github/workflows/build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ jobs:
107107
BAZEL_FLAGS="${BAZEL_FLAGS} --test_env=JAX_PLATFORMS=cpu"
108108
fi
109109
110+
BAZEL_FLAGS="${BAZEL_FLAGS} --config=public_cache_push"
110111
echo "BAZEL_FLAGS=${BAZEL_FLAGS}" >> "${GITHUB_ENV}"
111112
- uses: actions/checkout@v6
112113
- uses: bazel-contrib/setup-bazel@0.16.0

0 commit comments

Comments
 (0)