Skip to content

Commit ba3ec91

Browse files
Googlercopybara-github
Googler
authored andcommitted
Enable cquery in GitHub CI
BEGIN_PUBLIC Enable cquery in GitHub CI This will prevent incompatible targets from being built and tested. END_PUBLIC PiperOrigin-RevId: 684771349 Change-Id: Iba8807531e2c5465f1378bc384359be439373bf6
1 parent ae44550 commit ba3ec91

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.bazelci/presubmit.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,8 @@ tasks:
6565
name: Ubuntu 20.04 (Bazel HEAD)
6666
bazel: last_green
6767
platform: ubuntu2004
68+
environment:
69+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
6870
build_targets: *build_targets
6971
test_targets:
7072
- "//:all"
@@ -77,12 +79,16 @@ tasks:
7779
name: MacOS (Bazel HEAD)
7880
bazel: last_green
7981
platform: macos
82+
environment:
83+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
8084
build_targets: *build_targets
8185
test_targets: *test_targets
8286
windows_head:
8387
name: Windows (Bazel HEAD)
8488
bazel: last_green
8589
platform: macos
90+
environment:
91+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
8692
build_targets: *build_targets
8793
test_targets: *test_targets
8894

@@ -91,18 +97,24 @@ tasks:
9197
name: Ubuntu 20.04 (Bazel 6)
9298
bazel: 6.3.0
9399
platform: ubuntu2004
100+
environment:
101+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
94102
build_targets: *build_targets_bazel_6
95103
test_targets: *test_targets_bazel_6
96104
macos_bazel_6:
97105
name: MacOS (Bazel 6)
98106
bazel: 6.3.0
99107
platform: macos
108+
environment:
109+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
100110
build_targets: *build_targets_bazel_6
101111
test_targets: *test_targets_bazel_6
102112
windows_bazel_6:
103113
name: Windows (Bazel 6)
104114
bazel: 6.3.0
105115
platform: macos
116+
environment:
117+
EXP_USE_CQUERY: 1 # Don't build incompatible targets
106118
build_targets: *build_targets_bazel_6
107119
test_targets: *test_targets_bazel_6
108120

0 commit comments

Comments
 (0)