23 lines
817 B
Text
23 lines
817 B
Text
|
|
# --- Remote Cache Configuration (Self-Hosted bazel-remote) ---
|
||
|
|
# Use this with 'bazel build --config=remote ...'
|
||
|
|
|
||
|
|
# Common settings for remote caching
|
||
|
|
build:remote --remote_upload_local_results=true
|
||
|
|
build:remote --remote_download_outputs=all
|
||
|
|
build:remote --remote_cache=grpcs://bazel-cache.csbx.dev
|
||
|
|
|
||
|
|
# For CI environments (read and write)
|
||
|
|
build:ci --config=remote
|
||
|
|
build:ci --define=ci=true
|
||
|
|
|
||
|
|
# For Developer environments (read-only is a good default)
|
||
|
|
build:dev --config=remote
|
||
|
|
build:dev --remote_upload_local_results=false
|
||
|
|
|
||
|
|
# Register mypy_aspect with Bazel and enable typechecks by default
|
||
|
|
build --aspects //tools:aspects.bzl%mypy_aspect
|
||
|
|
build --output_groups=+mypy
|
||
|
|
|
||
|
|
# Suppress deprecated declaration warnings from protobuf external dependency
|
||
|
|
build --per_file_copt=external/protobuf+.*@-Wno-deprecated-declarations
|