Skip to content

Commit

Permalink
Enable cquery in GitHub CI
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Googler authored and copybara-github committed Oct 11, 2024
1 parent ae44550 commit ba3ec91
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .bazelci/presubmit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ tasks:
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"
Expand All @@ -77,12 +79,16 @@ tasks:
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

Expand All @@ -91,18 +97,24 @@ tasks:
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

Expand Down

0 comments on commit ba3ec91

Please sign in to comment.