-
Notifications
You must be signed in to change notification settings - Fork 69
/
.bazelrc
68 lines (51 loc) · 2.52 KB
/
.bazelrc
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# populate env used for stamping builds etc
build --workspace_status_command=./hack/print-workspace-status.sh
run --workspace_status_command=./hack/print-workspace-status.sh
# enable data race detection
test --@io_bazel_rules_go//go/config:race --test_output=errors
# only build tests when testing
test --build_tests_only
# Note needs an instance name
# See --config=ci-instance for a concrete example
# https://github.com/bazelbuild/bazel-toolchains/blob/master/bazelrc/bazel-0.27.0.bazelrc
build:remote --jobs=500
build:remote --java_runtime_version=rbe_jdk
build:remote --tool_java_runtime_version=rbe_jdk
build:remote --extra_toolchains=//java:all
build:remote --crosstool_top=@rbe_default//cc:toolchain
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
build:remote --extra_toolchains=//platform:cc-toolchain
build:remote --extra_execution_platforms=//platform:with_network
build:remote --host_platform=//platform:with_network
build:remote --platforms=//platform:with_network
#build:remote --extra_execution_platforms=@io_k8s_repo_infra//:rbe_with_network
#build:remote --host_platform=@io_k8s_repo_infra//:rbe_with_network
#build:remote --platforms=@io_k8s_repo_infra//:rbe_with_network
build:remote --define=EXECUTOR=remote
build:remote --remote_executor=grpcs://remotebuildexecution.googleapis.com
build:remote --remote_timeout=3600
# --google_credentials=some_file.json
build:remote --google_default_credentials=true
build:remote --config=toplevel
run:remote --remote_download_outputs=all --noexperimental_inmemory_jdeps_files --noexperimental_inmemory_dotd_files
# Improve cache hit rate
build:remote --incompatible_strict_action_env=true
# Minimize what is downloaded
build:inmemory --experimental_inmemory_jdeps_files
build:inmemory --experimental_inmemory_dotd_files
build:toplevel --config=inmemory
build:toplevel --remote_download_outputs=toplevel
build:minimal --config=inmemory
build:minimal --remote_download_outputs=minimal
# Compose the remote configs with an instance name
# A couple examples below:
# --config=ci-instance adds the instance name
build:ci-instance --remote_instance_name=projects/oss-prow-builds/instances/default_instance
build:trusted-instance --remote_instance_name=projects/k8s-prow/instances/default_instance
# Config we want to use in ci
build:ci --config=remote --config=ci-instance
# Used for non-interactive ci builds
build:ci --noshow_progress # reduce log spam
test:ci --nobuild_tests_only # yes, build everything
# https://github.com/bazelbuild/rules_go/pull/2110#issuecomment-508713878
build --stamp=true