From c1a9911083fd1c07e5ca5ba2e5dfb1d2782478f3 Mon Sep 17 00:00:00 2001 From: Daniel Wagner-Hall Date: Fri, 5 Jan 2024 14:14:45 +0000 Subject: [PATCH] Set up publish-to-bcr (#230) --- .bcr/metadata.template.json | 25 +++++++++++++++++++++++++ .bcr/presubmit.yml | 10 ++++++++++ .bcr/source.template.json | 5 +++++ 3 files changed, 40 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..b52c3e78 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,25 @@ +{ + "homepage": "https://github.com/bazel-contrib/rules_jvm", + "maintainers": [ + { + "name": "Daniel Wagner-Hall", + "email": "dawagner@gmail.com", + "github": "illicitonion" + }, + { + "name": "Gibson Fahnestock", + "email": "gibfahn@gmail.com", + "github": "gibfahn" + }, + { + "name": "Simon Stewart", + "email": "simon.m.stewart@gmail.com", + "github": "shs96c" + } + ], + "repository": [ + "github:bazel-contrib/rules_jvm" + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 00000000..cb2a2ff6 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,10 @@ +# We should probably create a standalone test module, but for now we'll just run our in-repo tests. +bcr_test_module: + matrix: + platform: ["debian10", "macos", "ubuntu2004", "windows"] + tasks: + run_tests: + name: "Run tests" + platform: ${{ platform }} + test_targets: + - "//..." diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 00000000..4f148199 --- /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" +}