From f30b65940d0e5ca178cebe3d250a510427e101a7 Mon Sep 17 00:00:00 2001 From: Fabian Meumertzheim Date: Mon, 17 Oct 2022 17:07:30 +0200 Subject: [PATCH] bzlmod: Set up automated BCR releases (#3324) This uses the https://github.com/bazel-contrib/publish-to-bcr app. --- .bcr/config.yml | 1 + .bcr/metadata.template.json | 12 ++++++++++++ .bcr/presubmit.yml | 31 +++++++++++++++++++++++++++++++ .bcr/source.template.json | 4 ++++ 4 files changed, 48 insertions(+) create mode 100644 .bcr/config.yml create mode 100644 .bcr/metadata.template.json create mode 100644 .bcr/presubmit.yml create mode 100644 .bcr/source.template.json diff --git a/.bcr/config.yml b/.bcr/config.yml new file mode 100644 index 0000000000..42abfe1870 --- /dev/null +++ b/.bcr/config.yml @@ -0,0 +1 @@ +fixedReleaser: fmeum diff --git a/.bcr/metadata.template.json b/.bcr/metadata.template.json new file mode 100644 index 0000000000..14345abb68 --- /dev/null +++ b/.bcr/metadata.template.json @@ -0,0 +1,12 @@ +{ + "homepage": "https://github.com/bazelbuild/rules_go", + "maintainers": [ + { + "email": "fabian@meumertzhe.im", + "github": "fmeum", + "name": "Fabian Meumertzheim" + } + ], + "versions": [], + "yanked_versions": {} +} diff --git a/.bcr/presubmit.yml b/.bcr/presubmit.yml new file mode 100644 index 0000000000..805d5dbe01 --- /dev/null +++ b/.bcr/presubmit.yml @@ -0,0 +1,31 @@ +matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + - windows +tasks: + verify_targets: + name: Verify build targets + platform: ${{ platform }} + build_targets: + - '@rules_go//go/tools/bzltestutil/...' +bcr_test_module: + module_path: tests/bcr + matrix: + platform: + - centos7 + - debian10 + - ubuntu2004 + - macos + - windows + tasks: + run_test_module: + name: Run test module + platform: ${{ platform }} + build_targets: + - //... + - '@go_sdk//...' + test_targets: + - //... diff --git a/.bcr/source.template.json b/.bcr/source.template.json new file mode 100644 index 0000000000..31e97fa1c8 --- /dev/null +++ b/.bcr/source.template.json @@ -0,0 +1,4 @@ +{ + "integrity": "", + "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.zip" +}