Add .bazelci/presubmit.yml to test protobuf on Bazel CI

PiperOrigin-RevId: 731327971
pull/20452/head
Protobuf Team Bot 1 month ago committed by Copybara-Service
parent 57b59ef601
commit 0d7ebb7122
  1. 6
      .bazelci/README.md
  2. 21
      .bazelci/presubmit.yml
  3. 6
      .bcr/presubmit.yml

@ -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.

@ -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)

@ -1,7 +1,8 @@
# LINT.IfChange(bcr_presubmit)
bcr_test_module:
module_path: examples
matrix:
platform: ["debian10", "macos", "ubuntu2004", "windows"]
platform: ["debian10", "macos", "macos_arm64", "ubuntu2004", "windows"]
bazel: [7.x, 8.x]
tasks:
@ -17,4 +18,5 @@ bcr_test_module:
- '@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'
- '@com_google_protobuf//:test_messages_proto3_cc_proto'
# LINT.ThenChange(<ROOT_DIR>/.bazelci/presubmit.yml)

Loading…
Cancel
Save