diff --git a/.bcr/README.md b/.bcr/README.md new file mode 100644 index 0000000000..52271ba315 --- /dev/null +++ b/.bcr/README.md @@ -0,0 +1,8 @@ +# Bazel Central Registry + +When protobuf is released, we want it to be published to the Bazel Central +Registry automatically: + +This folder contains configuration files to automate the publish step. See + +for authoritative documentation about these files. diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000000..0a4ab6d75f --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,23 @@ +{ + "homepage": "https://github.com/protocolbuffers/protobuf", + "maintainers": [ + { + "email": "sandyzhang@google.com", + "github": "zhangskz", + "name": "Sandy Zhang" + }, + { + "email": "mkruskal@google.com", + "github": "mkruskal-google", + "name": "Mike Kruskal" + }, + { + "email": "gberg@google.com", + "github": "googleberg", + "name": "Jerry Berg" + } + ], + "repository": ["github:protocolbuffers/protobuf"], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000000..a8ed870656 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,25 @@ +matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + +tasks: + verify_targets: + name: "Verify build targets" + platform: ${{ platform }} + build_targets: + - '@protobuf//:protobuf' + - '@protobuf//:protobuf_lite' + - '@protobuf//:protoc' + - '@protobuf//:test_messages_proto2_cc_proto' + - '@protobuf//:test_messages_proto3_cc_proto' + +bcr_test_module: + module_path: "examples" + matrix: + + platform: ["debian10", "macos", "ubuntu2004", "windows"] + tasks: + run_test_module: + name: "Run test module" + platform: ${{ platform }} + build_targets: + - "//..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000000..ce4bbcce0f --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "**leave this alone**", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.zip" +}