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
diff --git a/.bazelci/presubmit.yml b/.bazelci/presubmit.yml
index 7406069..9e66335 100644
--- a/.bazelci/presubmit.yml
+++ b/.bazelci/presubmit.yml
@@ -65,6 +65,8 @@
name: Ubuntu 20.04 (Bazel HEAD)
bazel: last_green
platform: ubuntu2004
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
build_targets: *build_targets
test_targets:
- "//:all"
@@ -77,12 +79,16 @@
name: MacOS (Bazel HEAD)
bazel: last_green
platform: macos
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
build_targets: *build_targets
test_targets: *test_targets
windows_head:
name: Windows (Bazel HEAD)
bazel: last_green
platform: macos
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
build_targets: *build_targets
test_targets: *test_targets
@@ -91,18 +97,24 @@
name: Ubuntu 20.04 (Bazel 6)
bazel: 6.3.0
platform: ubuntu2004
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
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
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
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
+ environment:
+ EXP_USE_CQUERY: 1 # Don't build incompatible targets
build_targets: *build_targets_bazel_6
test_targets: *test_targets_bazel_6