Skip to content

Commit f30b659

Browse files
authored
bzlmod: Set up automated BCR releases (#3324)
This uses the https://github.com/bazel-contrib/publish-to-bcr app.
1 parent 535c8e6 commit f30b659

File tree

4 files changed

+48
-0
lines changed

4 files changed

+48
-0
lines changed

.bcr/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
fixedReleaser: fmeum

.bcr/metadata.template.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
{
2+
"homepage": "https://github.com/bazelbuild/rules_go",
3+
"maintainers": [
4+
{
5+
"email": "[email protected]",
6+
"github": "fmeum",
7+
"name": "Fabian Meumertzheim"
8+
}
9+
],
10+
"versions": [],
11+
"yanked_versions": {}
12+
}

.bcr/presubmit.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
matrix:
2+
platform:
3+
- centos7
4+
- debian10
5+
- ubuntu2004
6+
- macos
7+
- windows
8+
tasks:
9+
verify_targets:
10+
name: Verify build targets
11+
platform: ${{ platform }}
12+
build_targets:
13+
- '@rules_go//go/tools/bzltestutil/...'
14+
bcr_test_module:
15+
module_path: tests/bcr
16+
matrix:
17+
platform:
18+
- centos7
19+
- debian10
20+
- ubuntu2004
21+
- macos
22+
- windows
23+
tasks:
24+
run_test_module:
25+
name: Run test module
26+
platform: ${{ platform }}
27+
build_targets:
28+
- //...
29+
- '@go_sdk//...'
30+
test_targets:
31+
- //...

.bcr/source.template.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"integrity": "",
3+
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.zip"
4+
}

0 commit comments

Comments
 (0)