Bazel Remote Cache
Avrea provides a remote cache endpoint for Bazel. Build and test actions can be cached so that unchanged targets are never rebuilt.
On Avrea runners
Section titled “On Avrea runners”Bazel is pre-configured via /etc/bazel.bazelrc:
build --remote_cache=http://avrea-host:8290/bazel-buildYour workflow needs no changes:
jobs: build: runs-on: avrea-ubuntu-latest steps: - uses: actions/checkout@v6 - run: bazel build //... - run: bazel test //...Manual setup
Section titled “Manual setup”Add to your project .bazelrc or ~/.bazelrc:
build --remote_cache=http://avrea-host:8290/bazel-buildConfiguration options
Section titled “Configuration options”You can combine the remote cache with other Bazel flags in your .bazelrc:
build --remote_cache=http://avrea-host:8290/bazel-buildbuild --remote_upload_local_results=truebuild --remote_accept_cached=true