Nikhil Marathe | f8a94b9 | 2020-06-29 01:43:00 -0700 | [diff] [blame] | 1 | common --enable_platform_specific_config |
Googler | 678b01a | 2024-10-05 23:16:32 -0700 | [diff] [blame] | 2 | |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 3 | # Shared configuration flags to build and test Bazel on RBE. |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 4 | build:remote_shared --remote_instance_name=projects/bazel-untrusted/instances/default_instance |
| 5 | build:remote_shared --remote_executor=grpcs://remotebuildexecution.googleapis.com |
Tiago Quelhas | 24470be | 2023-03-14 02:44:21 -0700 | [diff] [blame] | 6 | build:remote_shared --remote_download_toplevel |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 7 | build:remote_shared --remote_timeout=600 |
| 8 | build:remote_shared --google_default_credentials |
| 9 | build:remote_shared --jobs=100 |
| 10 | build:remote_shared --action_env=PATH=/bin:/usr/bin:/usr/local/bin |
Ivo List | bba4b34 | 2021-01-19 08:31:40 -0800 | [diff] [blame] | 11 | build:remote_shared --java_runtime_version=rbe_jdk |
| 12 | build:remote_shared --tool_java_runtime_version=rbe_jdk |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 13 | |
| 14 | # Configuration to build and test Bazel on RBE on Ubuntu 18.04 with Java 11 |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 15 | build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//java:all |
| 16 | build:ubuntu2004 --crosstool_top=@rbe_ubuntu2004//cc:toolchain |
| 17 | build:ubuntu2004 --extra_toolchains=@rbe_ubuntu2004//config:cc-toolchain |
| 18 | build:ubuntu2004 --extra_execution_platforms=//:rbe_ubuntu2004_platform,//:rbe_ubuntu2004_highcpu_platform |
| 19 | build:ubuntu2004 --host_platform=//:rbe_ubuntu2004_platform |
| 20 | build:ubuntu2004 --platforms=//:rbe_ubuntu2004_platform |
| 21 | build:ubuntu2004 --config=remote_shared |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 22 | |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 23 | # Alias |
Googler | 40824e1 | 2024-03-11 02:38:48 -0700 | [diff] [blame] | 24 | build:remote --config=ubuntu2004 |
Jakob Buchgraber | 60df905 | 2019-07-11 06:08:00 -0700 | [diff] [blame] | 25 | |
Googler | 3fd29de | 2025-01-14 01:42:17 -0800 | [diff] [blame] | 26 | build:macos --host_macos_minimum_os=10.13 |
Gowroji Sunil | 417c6b8 | 2024-06-04 09:23:45 -0700 | [diff] [blame] | 27 | build:macos --macos_minimum_os=10.13 |
Nikhil Marathe | f8a94b9 | 2020-06-29 01:43:00 -0700 | [diff] [blame] | 28 | |
Googler | 138f06f | 2023-08-10 01:53:06 -0700 | [diff] [blame] | 29 | build:windows_arm64 --platforms=//:windows_arm64 |
| 30 | build:windows_arm64 --extra_toolchains=@local_config_cc//:cc-toolchain-arm64_windows |
| 31 | |
Googler | 15d4a05 | 2023-12-12 09:47:46 -0800 | [diff] [blame] | 32 | # Check direct Bazel module dependencies are up-to-date |
| 33 | common --check_direct_dependencies=error |
| 34 | |
| 35 | # Add mirrors for certain download URLs |
Googler | a6edba9 | 2025-04-15 11:13:41 -0700 | [diff] [blame] | 36 | common --downloader_config=bazel_downloader.cfg |
Yun Peng | 89ea68b | 2021-11-23 11:24:51 -0800 | [diff] [blame] | 37 | |
Tiago Quelhas | ba38aa2 | 2023-11-13 07:16:07 -0800 | [diff] [blame] | 38 | # Enable modern C++ features |
| 39 | build:linux --cxxopt=-std=c++17 |
| 40 | build:linux --host_cxxopt=-std=c++17 |
| 41 | build:macos --cxxopt=-std=c++17 |
| 42 | build:macos --host_cxxopt=-std=c++17 |
| 43 | build:windows --cxxopt=/std:c++17 |
| 44 | build:windows --host_cxxopt=/std:c++17 |
| 45 | |
Googler | 8de2fb2 | 2024-11-08 09:24:09 -0800 | [diff] [blame] | 46 | # Suppress warnings from external repos, we have no direct control on them anyway. |
| 47 | build:linux --per_file_copt=external/.*@-w |
| 48 | build:linux --host_per_file_copt=external/.*@-w |
| 49 | build:macos --per_file_copt=external/.*@-w |
| 50 | build:macos --host_per_file_copt=external/.*@-w |
| 51 | build:windows --per_file_copt=external/.*@/w |
| 52 | build:windows --host_per_file_copt=external/.*@/w |
| 53 | |
Googler | 707d065 | 2024-03-11 04:15:38 -0700 | [diff] [blame] | 54 | # Enable Java 21 language features |
| 55 | build --java_runtime_version=21 |
| 56 | build --java_language_version=21 |
| 57 | build --tool_java_language_version=21 |
| 58 | build --tool_java_runtime_version=21 |
cushon | 0c65082 | 2022-01-18 08:26:40 -0800 | [diff] [blame] | 59 | |
John Millikin | 8e8e43e | 2019-10-31 07:39:40 -0700 | [diff] [blame] | 60 | # User-specific .bazelrc |
Emil Kattainen | 5ade86d | 2022-08-30 07:51:18 -0700 | [diff] [blame] | 61 | try-import %workspace%/user.bazelrc |
fweikert | 69895ba | 2022-07-13 04:56:04 -0700 | [diff] [blame] | 62 | |
| 63 | build:docs --workspace_status_command=scripts/docs/get_workspace_status.sh |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 64 | |
| 65 | # Flags for CI builds |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 66 | ## Common |
| 67 | common:ci-common --lockfile_mode=error |
| 68 | |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 69 | ## For Linux |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 70 | common:ci-linux --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 71 | build:ci-linux --repository_cache=/var/lib/buildkite-agent/bazeltest/repo_cache |
| 72 | test:ci-linux --test_env=TEST_INSTALL_BASE=/var/lib/buildkite-agent/bazeltest/install_base |
| 73 | test:ci-linux --test_env=REPOSITORY_CACHE=/var/lib/buildkite-agent/bazeltest/repo_cache |
| 74 | test:ci-linux --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80 |
| 75 | test:ci-linux --sandbox_writable_path=/var/lib/buildkite-agent/bazeltest |
| 76 | test:ci-linux --sandbox_default_allow_network=false |
| 77 | |
| 78 | ## For macOS |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 79 | common:ci-macos --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 80 | build:ci-macos --repository_cache=/Users/buildkite/bazeltest/repo_cache |
Googler | 2fb8564 | 2024-05-31 04:41:52 -0700 | [diff] [blame] | 81 | build:ci-macos --experimental_collect_system_network_usage |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 82 | test:ci-macos --test_env=TEST_INSTALL_BASE=/Users/buildkite/bazeltest/install_base |
| 83 | test:ci-macos --test_env=REPOSITORY_CACHE=/Users/buildkite/bazeltest/repo_cache |
| 84 | test:ci-macos --test_env=REMOTE_NETWORK_ADDRESS=bazel.build:80 |
| 85 | test:ci-macos --sandbox_writable_path=/Users/buildkite/bazeltest |
Googler | 355b000 | 2024-09-24 06:02:19 -0700 | [diff] [blame] | 86 | # TODO(pcloudy): Revert to false once https://github.com/bazelbuild/bazel/issues/23726 is resolved. |
| 87 | test:ci-macos --sandbox_default_allow_network=true |
Yun Peng | e46f3d1 | 2024-02-21 07:54:31 -0800 | [diff] [blame] | 88 | test:ci-macos --test_tag_filters=-no_macos |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 89 | |
| 90 | ## For Windows |
Yun Peng | a7b1d36 | 2023-11-08 09:09:59 -0800 | [diff] [blame] | 91 | common:ci-windows --config=ci-common |
Yun Peng | 136dae1 | 2023-09-08 12:39:10 -0700 | [diff] [blame] | 92 | build:ci-windows --repository_cache=C:/b/bazeltest_repo_cache |
| 93 | test:ci-windows --test_env=BAZEL_VC |
| 94 | test:ci-windows --test_env=JAVA_HOME |
| 95 | test:ci-windows --test_env=TEST_INSTALL_BASE=C:/b/bazeltest_install_base |
| 96 | test:ci-windows --test_env=REPOSITORY_CACHE=C:/b/bazeltest_repo_cache |
| 97 | test:ci-windows --test_tag_filters=-no_windows,-slow |