-
Notifications
You must be signed in to change notification settings - Fork 15.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add .bazelci/presubmit.yml to test protobuf on Bazel CI
PiperOrigin-RevId: 731327971
- Loading branch information
1 parent
57b59ef
commit 0d7ebb7
Showing
3 changed files
with
31 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# Bazel CI test | ||
|
||
The `.bazelci/presubmit.yml` file is used by https://buildkite.com/bazel/protobuf | ||
to test building protobuf with Bazel on Bazel CI. It should contain the same | ||
set of tests as `.bcr/presubmit.yml` which is the tests that will run before | ||
publishing protobuf to BCR. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# LINT.IfChange(bazelci_presubmit) | ||
matrix: | ||
platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"] | ||
bazel: [7.x, 8.x] | ||
|
||
tasks: | ||
verify_targets: | ||
name: "Verify build targets" | ||
working_directory: examples | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_targets: | ||
- '//...' | ||
- '@com_google_protobuf//:protobuf' | ||
- '@com_google_protobuf//:protobuf_lite' | ||
- '@com_google_protobuf//:protobuf_python' | ||
- '@com_google_protobuf//:protobuf_java' | ||
- '@com_google_protobuf//:protoc' | ||
- '@com_google_protobuf//:test_messages_proto2_cc_proto' | ||
- '@com_google_protobuf//:test_messages_proto3_cc_proto' | ||
# LINT.ThenChange(<ROOT_DIR>/.bcr/presubmit.yml) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters