diff --git a/.bcr/README.md b/.bcr/README.md new file mode 100644 index 0000000000..2f619a830a --- /dev/null +++ b/.bcr/README.md @@ -0,0 +1,6 @@ +# Publish to BCR Configuration + +This directory contains configuration for the Publish to BCR app, which +automates publishing releases to the Bazel Central Registry. See +https://github.com/bazel-contrib/publish-to-bcr/tree/main/templates for +details. diff --git a/.bcr/config.yml b/.bcr/config.yml new file mode 100644 index 0000000000..e69de29bb2 diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000000..6d8f7670ff --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,25 @@ +{ + "homepage": "https://boringssl.googlesource.com/boringssl/", + "maintainers": [ + { + "email": "agl@google.com", + "github": "agl", + "name": "Adam Langley" + }, + { + "email": "bbe@google.com", + "github": "bob-beck", + "name": "Bob Beck" + }, + { + "email": "davidben@google.com", + "github": "davidben", + "name": "David Benjamin" + } + ], + "repository": [ + "github:google/boringssl" + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000000..f1253e9cef --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,33 @@ +build_targets: &build_targets + - "@boringssl//:crypto" + - "@boringssl//:ssl" + +matrix: + platform: + - centos7_java11_devtoolset10 + - debian11 + - ubuntu2204 + - windows + bazel: [6.x, 7.x] +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: *build_targets + # Work around https://github.com/bazelbuild/bazel/issues/10472 + verify_targets_on_macos: + name: Verify build targets on macOS + platform: macos + bazel: ${{ bazel }} + build_targets: *build_targets + build_flags: + - '--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: + - //... diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000000..20374716f3 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz" +}