Skip to content

Commit

Permalink
Add templates for Publish to BCR
Browse files Browse the repository at this point in the history
Not sure if these are correct. I added a README so that our future
selves have some hope of figuring out what this is for. The metadata and
presubmit files I copied from our existing BCR entries.

https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/boringssl/0.0.0-20240530-2db0eb3/presubmit.yml
https://github.com/bazelbuild/bazel-central-registry/blob/main/modules/boringssl/metadata.json

Change-Id: Ice8b7dee7360e44f77411db6fec8067a3204aa0b
Reviewed-on: https://boringssl-review.googlesource.com/c/boringssl/+/71287
Commit-Queue: David Benjamin <[email protected]>
Auto-Submit: David Benjamin <[email protected]>
Reviewed-by: Adam Langley <[email protected]>
Commit-Queue: Adam Langley <[email protected]>
  • Loading branch information
davidben committed Sep 13, 2024
1 parent 581f83d commit 58f3bc8
Show file tree
Hide file tree
Showing 5 changed files with 69 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .bcr/README.md
Original file line number Diff line number Diff line change
@@ -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.
Empty file added .bcr/config.yml
Empty file.
25 changes: 25 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"homepage": "https://boringssl.googlesource.com/boringssl/",
"maintainers": [
{
"email": "[email protected]",
"github": "agl",
"name": "Adam Langley"
},
{
"email": "[email protected]",
"github": "bob-beck",
"name": "Bob Beck"
},
{
"email": "[email protected]",
"github": "davidben",
"name": "David Benjamin"
}
],
"repository": [
"github:google/boringssl"
],
"versions": [],
"yanked_versions": {}
}
33 changes: 33 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -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:
- //...
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}

0 comments on commit 58f3bc8

Please sign in to comment.