2018-02-25 11:07:47 +00:00
|
|
|
---
|
2024-04-25 14:59:42 +00:00
|
|
|
matrix:
|
|
|
|
platform:
|
|
|
|
- ubuntu1804
|
|
|
|
- ubuntu2004
|
|
|
|
- macos
|
|
|
|
|
|
|
|
.reusable_build_flags: &reusable_build_flags
|
|
|
|
? "--incompatible_config_setting_private_default_visibility"
|
|
|
|
? "--incompatible_disallow_empty_glob"
|
|
|
|
|
|
|
|
.reusable_test_flags: &reusable_test_flags
|
|
|
|
<<: *reusable_build_flags
|
|
|
|
? "--test_env=PATH"
|
|
|
|
|
|
|
|
.reusable_targets: &reusable_targets
|
|
|
|
? "--"
|
|
|
|
? "//..."
|
2024-05-29 05:24:27 +00:00
|
|
|
? "@external_directory_tests//..."
|
2024-04-25 14:59:42 +00:00
|
|
|
? "@bazel_skylib_gazelle_plugin//..."
|
|
|
|
|
2023-01-20 21:48:10 +00:00
|
|
|
.reusable_config: &reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
build_flags: *reusable_build_flags
|
|
|
|
test_flags: *reusable_test_flags
|
|
|
|
build_targets: *reusable_targets
|
|
|
|
test_targets: *reusable_targets
|
2023-01-20 21:48:10 +00:00
|
|
|
|
2019-02-27 17:21:18 +00:00
|
|
|
tasks:
|
2024-04-25 14:59:42 +00:00
|
|
|
ubuntu2004_bazel5:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
name: "Bazel 5.x"
|
|
|
|
platform: ubuntu2004
|
|
|
|
bazel: 5.x
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
ubuntu2004_bazel6:
|
|
|
|
<<: *reusable_config
|
|
|
|
name: "Bazel 6.x"
|
|
|
|
platform: ubuntu2004
|
|
|
|
bazel: 6.x
|
2023-08-08 21:32:28 +00:00
|
|
|
build_targets:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_targets
|
|
|
|
# rules_pkg fails with --noenable_bzlmod
|
|
|
|
? "-//distribution/..."
|
2023-08-08 21:32:28 +00:00
|
|
|
test_targets:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_targets
|
|
|
|
# rules_pkg fails with --noenable_bzlmod
|
|
|
|
? "-//distribution/..."
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
ubuntu2004_bazel6_enable_bzlmod:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
name: "Bazel 6.x with --enable_bzlmod"
|
|
|
|
platform: ubuntu2004
|
|
|
|
bazel: 6.x
|
2023-05-16 03:40:08 +00:00
|
|
|
build_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_build_flags
|
|
|
|
? "--enable_bzlmod"
|
2019-02-11 22:18:56 +00:00
|
|
|
test_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_test_flags
|
|
|
|
? "--enable_bzlmod"
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
latest:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2019-02-27 17:21:18 +00:00
|
|
|
name: "Latest Bazel"
|
2024-04-25 14:59:42 +00:00
|
|
|
platform: ${{ platform }}
|
2019-02-27 17:21:18 +00:00
|
|
|
bazel: latest
|
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
ubuntu2004_latest_noenable_bzlmod:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
name: "Latest Bazel with --noenable_bzlmod"
|
|
|
|
platform: ubuntu2004
|
|
|
|
bazel: latest
|
2023-05-16 03:40:08 +00:00
|
|
|
build_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_build_flags
|
|
|
|
? "--noenable_bzlmod"
|
2019-02-27 17:21:18 +00:00
|
|
|
test_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_test_flags
|
|
|
|
? "--noenable_bzlmod"
|
|
|
|
build_targets:
|
|
|
|
<<: *reusable_targets
|
|
|
|
# rules_pkg fails with --noenable_bzlmod
|
|
|
|
? "-//distribution/..."
|
|
|
|
test_targets:
|
|
|
|
<<: *reusable_targets
|
|
|
|
# rules_pkg fails with --noenable_bzlmod
|
|
|
|
? "-//distribution/..."
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
ubuntu1604_latest:
|
|
|
|
<<: *reusable_config
|
|
|
|
name: "Latest Bazel"
|
2019-02-27 17:21:18 +00:00
|
|
|
platform: ubuntu1604
|
2024-04-25 14:59:42 +00:00
|
|
|
bazel: latest
|
2023-08-08 21:32:28 +00:00
|
|
|
build_targets:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_targets
|
|
|
|
# //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
|
|
|
|
? "-//distribution/..."
|
2023-08-08 21:32:28 +00:00
|
|
|
test_targets:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_targets
|
|
|
|
# //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
|
|
|
|
? "-//distribution/..."
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
windows_latest:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
name: "Latest Bazel"
|
|
|
|
platform: windows
|
|
|
|
bazel: latest
|
2019-02-27 17:21:18 +00:00
|
|
|
test_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_test_flags
|
|
|
|
# TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
|
|
|
|
# https://github.com/bazelbuild/bazel/issues/7761 is fixed
|
|
|
|
? "--test_env=LOCALAPPDATA"
|
|
|
|
? "--test_tag_filters=-no_windows"
|
2019-02-27 17:21:18 +00:00
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
last_green:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2019-02-27 17:21:18 +00:00
|
|
|
name: "Last Green Bazel"
|
2024-04-25 14:59:42 +00:00
|
|
|
platform: ${{ platform }}
|
2019-02-27 17:21:18 +00:00
|
|
|
bazel: last_green
|
|
|
|
|
2024-04-25 14:59:42 +00:00
|
|
|
windows_last_green:
|
2023-01-20 21:48:10 +00:00
|
|
|
<<: *reusable_config
|
2024-04-25 14:59:42 +00:00
|
|
|
name: "Last Green Bazel"
|
|
|
|
platform: windows
|
2022-08-30 18:57:34 +00:00
|
|
|
bazel: last_green
|
|
|
|
test_flags:
|
2024-04-25 14:59:42 +00:00
|
|
|
<<: *reusable_test_flags
|
|
|
|
# TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
|
|
|
|
# https://github.com/bazelbuild/bazel/issues/7761 is fixed
|
|
|
|
? "--test_env=LOCALAPPDATA"
|
|
|
|
? "--test_tag_filters=-no_windows"
|
2022-08-30 18:57:34 +00:00
|
|
|
|
2019-03-07 15:27:25 +00:00
|
|
|
buildifier: latest
|