forked from livegrep/livegrep
-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bazelrc.ci
40 lines (34 loc) · 1.6 KB
/
.bazelrc.ci
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
startup --host_jvm_args=-Dbazel.DigestFunction=sha256
# abseil requires at least C++14, as of Jan 2023
# https://github.com/abseil/abseil-cpp/releases/tag/20230125.3
build --host_cxxopt=-std=c++14 --cxxopt=-std=c++14
# Ensure sandboxing is on to increase hermeticity.
build --spawn_strategy=sandboxed
build --compilation_mode=opt
# This is so we understand failures better
build --verbose_failures
build --worker_verbose
test --test_output=all
test --test_verbose_timeout_warnings
test --test_timeout=300
# Use BuildBuddy (anonymously for now) to build
# I tried a GCS cache, but I think we were hitting up against
# GH Actions API Request limit (10,000 per hour), since the GCS
# cache is HTTP based, and seeding the cache (building with an empty
# cache) will write ~18k objects -
# each which is theoretically an HTTP PUT call. BuildBuddy otoh uses
# GRPC, so a single connection/API call can be used to stream many writes
# build --bes_results_url=https://app.buildbuddy.io/invocation/
# build --bes_backend=grpcs://cloud.buildbuddy.io
# build --remote_cache=grpcs://cloud.buildbuddy.io
# common --remote_cache=https://storage.googleapis.com/livegrep-bazel-remote-cache
common --disk_cache=~/.cache/bazel
common --remote_timeout=300s
common --experimental_remote_cache_async
common --experimental_remote_merkle_tree_cache
# build --remote_header=x-buildbuddy-api-key=BUILDBUDDY_API_KEY
# don't fail if the cache is unavailable
common --remote_local_fallback=true
# remote upload defaults to true, which we don't want. We use sed to switch
# false to true during the CI build if necessary
common --remote_upload_local_results=false