2019-01-09 14:51:39 +00:00
|
|
|
---
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: &build_targets
|
|
|
|
- "//:all"
|
|
|
|
- "//cc/..."
|
|
|
|
- "//examples/..."
|
|
|
|
- "//tests/..."
|
|
|
|
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
|
|
|
|
test_targets: &test_targets
|
|
|
|
- "//:all"
|
|
|
|
- "//cc/..."
|
|
|
|
- "//examples/..."
|
|
|
|
- "//tests/..."
|
|
|
|
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
|
|
|
|
|
|
|
|
build_targets_bazel_6: &build_targets_bazel_6
|
|
|
|
- "//:all"
|
|
|
|
- "//cc:all"
|
|
|
|
- "//examples/..."
|
|
|
|
- "//tests/..."
|
|
|
|
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
|
|
|
|
- "-//tests/rule_based_toolchain/..." # proto.encode_text doesn't support None
|
|
|
|
- "-//cc:optional_current_cc_toolchain" # Not supported in Bazel 6
|
|
|
|
test_targets_bazel_6: &test_targets_bazel_6
|
|
|
|
- "//:all"
|
|
|
|
- "//cc:all"
|
|
|
|
- "//examples/..."
|
|
|
|
- "//tests/..."
|
|
|
|
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
|
|
|
|
- "-//tests/rule_based_toolchain/..." # proto.encode_text doesn't support None
|
|
|
|
- "-//cc:optional_current_cc_toolchain" # Not supported in Bazel 6
|
2019-11-14 10:03:04 +00:00
|
|
|
|
|
|
|
buildifier:
|
|
|
|
version: latest
|
|
|
|
warnings: "all"
|
|
|
|
|
|
|
|
tasks:
|
2024-10-09 15:25:32 +00:00
|
|
|
ubuntu2004:
|
|
|
|
name: Docs
|
|
|
|
test_targets:
|
|
|
|
- "//docs/..."
|
|
|
|
- "-//docs:toolchain_api_diff_test" # Bazel adds loads statements in examples
|
|
|
|
|
|
|
|
# Bazel LTS
|
|
|
|
ubuntu2004:
|
|
|
|
name: Ubuntu 20.04 (Bazel LTS)
|
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets: *test_targets
|
2019-01-09 14:51:39 +00:00
|
|
|
macos:
|
2024-10-09 15:25:32 +00:00
|
|
|
name: MacOS (Bazel LTS)
|
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets: *test_targets
|
2019-01-09 14:51:39 +00:00
|
|
|
windows:
|
2024-10-09 15:25:32 +00:00
|
|
|
name: Windows (Bazel LTS)
|
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets: *test_targets
|
2023-01-11 12:32:58 +00:00
|
|
|
ubuntu_bzlmod:
|
2024-10-09 15:25:32 +00:00
|
|
|
name: Ubuntu 20.04 (Bazel LTS, bzlmod)
|
|
|
|
platform: ubuntu2004
|
2023-01-11 12:32:58 +00:00
|
|
|
build_flags:
|
|
|
|
- "--enable_bzlmod"
|
|
|
|
- "--ignore_dev_dependency"
|
2024-10-09 15:25:32 +00:00
|
|
|
|
|
|
|
# Bazel@HEAD
|
|
|
|
ubuntu2004_head:
|
|
|
|
name: Ubuntu 20.04 (Bazel HEAD)
|
|
|
|
bazel: last_green
|
|
|
|
platform: ubuntu2004
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets:
|
|
|
|
- "//:all"
|
2023-01-11 12:32:58 +00:00
|
|
|
- "//cc/..."
|
2024-10-09 15:25:32 +00:00
|
|
|
- "//examples/..."
|
|
|
|
- "//tests/..."
|
|
|
|
- "-//examples/custom_toolchain:legacy_selector" # Example only works on Linux
|
|
|
|
- "-//tests/system_library:system_library_test" # Fails because of repo setup
|
|
|
|
macos_head:
|
|
|
|
name: MacOS (Bazel HEAD)
|
|
|
|
bazel: last_green
|
|
|
|
platform: macos
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets: *test_targets
|
|
|
|
windows_head:
|
|
|
|
name: Windows (Bazel HEAD)
|
|
|
|
bazel: last_green
|
|
|
|
platform: macos
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets
|
|
|
|
test_targets: *test_targets
|
|
|
|
|
|
|
|
# Bazel 6
|
|
|
|
ubuntu2004_bazel_6:
|
|
|
|
name: Ubuntu 20.04 (Bazel 6)
|
|
|
|
bazel: 6.3.0
|
|
|
|
platform: ubuntu2004
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets_bazel_6
|
|
|
|
test_targets: *test_targets_bazel_6
|
|
|
|
macos_bazel_6:
|
|
|
|
name: MacOS (Bazel 6)
|
|
|
|
bazel: 6.3.0
|
|
|
|
platform: macos
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets_bazel_6
|
|
|
|
test_targets: *test_targets_bazel_6
|
|
|
|
windows_bazel_6:
|
|
|
|
name: Windows (Bazel 6)
|
|
|
|
bazel: 6.3.0
|
|
|
|
platform: macos
|
2024-10-11 10:14:20 +00:00
|
|
|
environment:
|
|
|
|
EXP_USE_CQUERY: 1 # Don't build incompatible targets
|
2024-10-09 15:25:32 +00:00
|
|
|
build_targets: *build_targets_bazel_6
|
|
|
|
test_targets: *test_targets_bazel_6
|
|
|
|
|
2024-09-06 18:14:48 +00:00
|
|
|
ubuntu_rule_based_toolchains:
|
2024-09-09 15:39:54 +00:00
|
|
|
name: Ubuntu rule-based toolchains
|
2024-09-06 18:14:48 +00:00
|
|
|
platform: ubuntu1804
|
|
|
|
working_directory: examples/rule_based_toolchain
|
|
|
|
build_flags:
|
|
|
|
- "--enable_bzlmod"
|
|
|
|
build_targets:
|
|
|
|
- "//..."
|
|
|
|
test_targets:
|
|
|
|
- "//..."
|