From 298dfba7babfc394ce8fee170788faf94858fcbe Mon Sep 17 00:00:00 2001 From: Gia Thuan Lam Date: Sun, 31 Aug 2025 00:01:30 +0000 Subject: [PATCH] Add a simple .bcr directory. --- .bcr/metadata.template.json | 34 ++++++++++++++++++++++++++++++++++ .bcr/presubmit.yml | 33 +++++++++++++++++++++++++++++++++ .bcr/source.template.json | 5 +++++ 3 files changed, 72 insertions(+) create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 00000000..91f47c9c --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,34 @@ +{ + "homepage": "https://github.com/grpc/grpc-kotlin", + "maintainers": [ + { + "email": "", + "github": "bshaffer", + "github_user_id": 103941, + "name": "Brent Shaffer" + }, + { + "email": "", + "github": "jamesward", + "github_user_id": 65043, + "name": "James Ward" + }, + { + "email": "", + "github": "lowasser", + "github_user_id": 544569, + "name": "Louis Wasserman" + }, + { + "email": "", + "github": "duckladydinh", + "github_user_id": 22922064, + "name": "Lam Gia Thuan" + } + ], + "repository": [ + "github:grpc/grpc-kotlin" + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 00000000..5c8b336e --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,33 @@ +matrix: + platform: + - ubuntu2204 + - macos + bazel: + - 8.x +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + bazel: ${{ bazel }} + build_flags: + - '--cxxopt=-std=c++17' + - '--host_cxxopt=-std=c++17' + build_targets: + - '@grpc_kotlin//...' +bcr_test_module: + module_path: bzl-examples/bzlmod + matrix: + platform: + - ubuntu2204 + - macos + bazel: + - 8.x + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + bazel: ${{ bazel }} + build_targets: + - java/... + test_targets: + - javatests/... diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 00000000..a3bd62f1 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,5 @@ +{ + "integrity": "", + "strip_prefix": "{REPO}-{VERSION}", + "url": "https://github.com/{OWNER}/{REPO}/archive/refs/tags/{TAG}.tar.gz" +}