blob: b309d74c80091de12ca3cb4c9b894b88bf954134 [file] [log] [blame]
Nikhil Marathef8a94b92020-06-29 01:43:00 -07001common --enable_platform_specific_config
Googler678b01a2024-10-05 23:16:32 -07002
Jakob Buchgraber60df9052019-07-11 06:08:00 -07003# Shared configuration flags to build and test Bazel on RBE.
Jakob Buchgraber60df9052019-07-11 06:08:00 -07004build:remote_shared --remote_instance_name=projects/bazel-untrusted/instances/default_instance
5build:remote_shared --remote_executor=grpcs://remotebuildexecution.googleapis.com
Tiago Quelhas24470be2023-03-14 02:44:21 -07006build:remote_shared --remote_download_toplevel
Jakob Buchgraber60df9052019-07-11 06:08:00 -07007build:remote_shared --remote_timeout=600
8build:remote_shared --google_default_credentials
9build:remote_shared --jobs=100
10build:remote_shared --action_env=PATH=/bin:/usr/bin:/usr/local/bin
Ivo Listbba4b342021-01-19 08:31:40 -080011build:remote_shared --java_runtime_version=rbe_jdk
12build:remote_shared --tool_java_runtime_version=rbe_jdk
Jakob Buchgraber60df9052019-07-11 06:08:00 -070013
14# Configuration to build and test Bazel on RBE on Ubuntu 18.04 with Java 11
Googler40824e12024-03-11 02:38:48 -070015build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//java:all
16build:ubuntu2004 --crosstool_top=@rbe_ubuntu2004//cc:toolchain
17build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//config:cc-toolchain
18build:ubuntu2004 --extra_execution_platforms=//:rbe_ubuntu2004_platform,//:rbe_ubuntu2004_highcpu_platform
19build:ubuntu2004 --host_platform=//:rbe_ubuntu2004_platform
20build:ubuntu2004 --platforms=//:rbe_ubuntu2004_platform
21build:ubuntu2004 --config=remote_shared
Jakob Buchgraber60df9052019-07-11 06:08:00 -070022
Jakob Buchgraber60df9052019-07-11 06:08:00 -070023# Alias
Googler40824e12024-03-11 02:38:48 -070024build:remote --config=ubuntu2004
Jakob Buchgraber60df9052019-07-11 06:08:00 -070025
Googler3fd29de2025-01-14 01:42:17 -080026build:macos --host_macos_minimum_os=10.13
Gowroji Sunil417c6b82024-06-04 09:23:45 -070027build:macos --macos_minimum_os=10.13
Nikhil Marathef8a94b92020-06-29 01:43:00 -070028
Googler138f06f2023-08-10 01:53:06 -070029build:windows_arm64 --platforms=//:windows_arm64
30build:windows_arm64 --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows
31
Googler15d4a052023-12-12 09:47:46 -080032# Check direct Bazel module dependencies are up-to-date
33common --check_direct_dependencies=error
34
35# Add mirrors for certain download URLs
Googlera6edba92025-04-15 11:13:41 -070036common --downloader_config=bazel_downloader.cfg
Yun Peng89ea68b2021-11-23 11:24:51 -080037
Tiago Quelhasba38aa22023-11-13 07:16:07 -080038# Enable modern C++ features
39build:linux --cxxopt=-std=c++17
40build:linux --host_cxxopt=-std=c++17
41build:macos --cxxopt=-std=c++17
42build:macos --host_cxxopt=-std=c++17
43build:windows --cxxopt=/std:c++17
44build:windows --host_cxxopt=/std:c++17
45
Googler8de2fb22024-11-08 09:24:09 -080046# Suppress warnings from external repos, we have no direct control on them anyway.
47build:linux --per_file_copt=external/.*@-w
48build:linux --host_per_file_copt=external/.*@-w
49build:macos --per_file_copt=external/.*@-w
50build:macos --host_per_file_copt=external/.*@-w
51build:windows --per_file_copt=external/.*@/w
52build:windows --host_per_file_copt=external/.*@/w
53
Googler707d0652024-03-11 04:15:38 -070054# Enable Java 21 language features
55build --java_runtime_version=21
56build --java_language_version=21
57build --tool_java_language_version=21
58build --tool_java_runtime_version=21
cushon0c650822022-01-18 08:26:40 -080059
John Millikin8e8e43e2019-10-31 07:39:40 -070060# User-specific .bazelrc
Emil Kattainen5ade86d2022-08-30 07:51:18 -070061try-import %workspace%/user.bazelrc
fweikert69895ba2022-07-13 04:56:04 -070062
63build:docs --workspace_status_command=scripts/docs/get_workspace_status.sh
Yun Peng136dae12023-09-08 12:39:10 -070064
65# Flags for CI builds
Yun Penga7b1d362023-11-08 09:09:59 -080066## Common
67common:ci-common --lockfile_mode=error
68
Yun Peng136dae12023-09-08 12:39:10 -070069## For Linux
Yun Penga7b1d362023-11-08 09:09:59 -080070common:ci-linux --config=ci-common
Yun Peng136dae12023-09-08 12:39:10 -070071build:ci-linux --repository_cache=/var/lib/buildkite-agent/bazeltest/repo_cache
72test:ci-linux --test_env=TEST_INSTALL_BASE=/var/lib/buildkite-agent/bazeltest/install_base
73test:ci-linux --test_env=REPOSITORY_CACHE=/var/lib/buildkite-agent/bazeltest/repo_cache
74test:ci-linux --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80
75test:ci-linux --sandbox_writable_path=/var/lib/buildkite-agent/bazeltest
76test:ci-linux --sandbox_default_allow_network=false
77
78## For macOS
Yun Penga7b1d362023-11-08 09:09:59 -080079common:ci-macos --config=ci-common
Yun Peng136dae12023-09-08 12:39:10 -070080build:ci-macos --repository_cache=/Users/buildkite/bazeltest/repo_cache
Googler2fb85642024-05-31 04:41:52 -070081build:ci-macos --experimental_collect_system_network_usage
Yun Peng136dae12023-09-08 12:39:10 -070082test:ci-macos --test_env=TEST_INSTALL_BASE=/Users/buildkite/bazeltest/install_base
83test:ci-macos --test_env=REPOSITORY_CACHE=/Users/buildkite/bazeltest/repo_cache
84test:ci-macos --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80
85test:ci-macos --sandbox_writable_path=/Users/buildkite/bazeltest
Googler355b0002024-09-24 06:02:19 -070086# TODO(pcloudy): Revert to false once https://github.com/bazelbuild/bazel/issues/23726 is resolved.
87test:ci-macos --sandbox_default_allow_network=true
Yun Penge46f3d12024-02-21 07:54:31 -080088test:ci-macos --test_tag_filters=-no_macos
Yun Peng136dae12023-09-08 12:39:10 -070089
90## For Windows
Yun Penga7b1d362023-11-08 09:09:59 -080091common:ci-windows --config=ci-common
Yun Peng136dae12023-09-08 12:39:10 -070092build:ci-windows --repository_cache=C:/b/bazeltest_repo_cache
93test:ci-windows --test_env=BAZEL_VC
94test:ci-windows --test_env=JAVA_HOME
95test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base
96test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache
97test:ci-windows --test_tag_filters=-no_windows,-slow