• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1---
2matrix:
3  platform:
4    - ubuntu1804
5    - ubuntu2004
6    - macos
7
8.reusable_build_flags: &reusable_build_flags
9  ? "--incompatible_config_setting_private_default_visibility"
10  ? "--incompatible_disallow_empty_glob"
11
12.reusable_test_flags: &reusable_test_flags
13  <<: *reusable_build_flags
14  ? "--test_env=PATH"
15
16.reusable_targets: &reusable_targets
17  ? "--"
18  ? "//..."
19  ? "@external_directory_tests//..."
20  ? "@bazel_skylib_gazelle_plugin//..."
21
22.reusable_config: &reusable_config
23  build_flags: *reusable_build_flags
24  test_flags: *reusable_test_flags
25  build_targets: *reusable_targets
26  test_targets: *reusable_targets
27
28tasks:
29  ubuntu2004_bazel5:
30    <<: *reusable_config
31    name: "Bazel 5.x"
32    platform: ubuntu2004
33    bazel: 5.x
34
35  ubuntu2004_bazel6:
36    <<: *reusable_config
37    name: "Bazel 6.x"
38    platform: ubuntu2004
39    bazel: 6.x
40    build_targets:
41      <<: *reusable_targets
42      # rules_pkg fails with --noenable_bzlmod
43      ? "-//distribution/..."
44    test_targets:
45      <<: *reusable_targets
46      # rules_pkg fails with --noenable_bzlmod
47      ? "-//distribution/..."
48
49  ubuntu2004_bazel6_enable_bzlmod:
50    <<: *reusable_config
51    name: "Bazel 6.x with --enable_bzlmod"
52    platform: ubuntu2004
53    bazel: 6.x
54    build_flags:
55      <<: *reusable_build_flags
56      ? "--enable_bzlmod"
57    test_flags:
58      <<: *reusable_test_flags
59      ? "--enable_bzlmod"
60
61  latest:
62    <<: *reusable_config
63    name: "Latest Bazel"
64    platform: ${{ platform }}
65    bazel: latest
66
67  ubuntu2004_latest_noenable_bzlmod:
68    <<: *reusable_config
69    name: "Latest Bazel with --noenable_bzlmod"
70    platform: ubuntu2004
71    bazel: latest
72    build_flags:
73      <<: *reusable_build_flags
74      ? "--noenable_bzlmod"
75    test_flags:
76      <<: *reusable_test_flags
77      ? "--noenable_bzlmod"
78    build_targets:
79      <<: *reusable_targets
80      # rules_pkg fails with --noenable_bzlmod
81      ? "-//distribution/..."
82    test_targets:
83      <<: *reusable_targets
84      # rules_pkg fails with --noenable_bzlmod
85      ? "-//distribution/..."
86
87  ubuntu1604_latest:
88    <<: *reusable_config
89    name: "Latest Bazel"
90    platform: ubuntu1604
91    bazel: latest
92    build_targets:
93      <<: *reusable_targets
94      # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
95      ? "-//distribution/..."
96    test_targets:
97      <<: *reusable_targets
98      # //distribution requires Python >= 3.6 for some rules_pkg scripts; Ubuntu 16.04 has Python 3.5
99      ? "-//distribution/..."
100
101  windows_latest:
102    <<: *reusable_config
103    name: "Latest Bazel"
104    platform: windows
105    bazel: latest
106    test_flags:
107      <<: *reusable_test_flags
108      # TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
109      # https://github.com/bazelbuild/bazel/issues/7761 is fixed
110      ? "--test_env=LOCALAPPDATA"
111      ? "--test_tag_filters=-no_windows"
112
113  last_green:
114    <<: *reusable_config
115    name: "Last Green Bazel"
116    platform: ${{ platform }}
117    bazel: last_green
118
119  windows_last_green:
120    <<: *reusable_config
121    name: "Last Green Bazel"
122    platform: windows
123    bazel: last_green
124    test_flags:
125      <<: *reusable_test_flags
126      # TODO(laszlocsomor): remove "--test_env=LOCALAPPDATA" after
127      # https://github.com/bazelbuild/bazel/issues/7761 is fixed
128      ? "--test_env=LOCALAPPDATA"
129      ? "--test_tag_filters=-no_windows"
130
131buildifier: latest
132