Sync presubmit.yml from BCR
See https://github.com/bazelbuild/bazel-central-registry/pull/2785
Change-Id: I32921c00b2f7d956b7c5b73050657aea295908b8
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/71308
Reviewed-by: Adam Langley <agl@google.com>
Commit-Queue: Adam Langley <agl@google.com>
Auto-Submit: David Benjamin <davidben@google.com>
diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml
index f1253e9..f7e523e 100644
--- a/.bcr/presubmit.yml
+++ b/.bcr/presubmit.yml
@@ -2,17 +2,17 @@
- "@boringssl//:crypto"
- "@boringssl//:ssl"
-matrix:
- platform:
+matrix: &matrix
+ non_macos_platform:
- centos7_java11_devtoolset10
- debian11
- ubuntu2204
- windows
- bazel: [6.x, 7.x]
+ bazel: [7.x]
tasks:
verify_targets:
name: Verify build targets
- platform: ${{ platform }}
+ platform: ${{ non_macos_platform }}
bazel: ${{ bazel }}
build_targets: *build_targets
# Work around https://github.com/bazelbuild/bazel/issues/10472
@@ -21,13 +21,24 @@
platform: macos
bazel: ${{ bazel }}
build_targets: *build_targets
- build_flags:
+ build_flags: &macos_workaround
- '--cxxopt=-std=c++14'
- '--sandbox_block_path=/usr/local'
- run_test_module:
- name: Run test module
- platform: ${{ platform }}
- bazel: ${{ bazel }}
- module_path: util/bazel-example
- build_targets:
- - //...
+bcr_test_module:
+ module_path: util/bazel-example
+ matrix: *matrix
+ tasks:
+ run_test_module:
+ name: Run test module
+ platform: ${{ non_macos_platform }}
+ bazel: ${{ bazel }}
+ build_targets:
+ - //...
+ # Work around https://github.com/bazelbuild/bazel/issues/10472
+ run_test_module_on_macos:
+ name: Run test module on macOS
+ platform: macos
+ bazel: ${{ bazel }}
+ build_targets:
+ - //...
+ build_flags: *macos_workaround