Skip to content

Commit

Permalink
Add Publish to BCR setup (#363)
Browse files Browse the repository at this point in the history
  • Loading branch information
fmeum authored Aug 1, 2024
1 parent 8bf80b5 commit 6117a35
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{
"homepage": "https://github.com/bazel-contrib/toolchains_llvm",
"maintainers": [
{
"email": "fabian@meumertzhe.im",
"github": "fmeum",
"name": "Fabian Meumertzheim"
},
{
"email": "james.sharpe@zenotech.com",
"github": "jsharpe",
"name": "James Sharpe"
},
{
"email": "rrbutani@users.noreply.github.com",
"github": "rrbutani",
"name": "Rahul Butani"
}
],
"repository": ["github:bazel-contrib/toolchains_llvm"],
"versions": [],
"yanked_versions": {}
}
25 changes: 25 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
matrix:
bazel: [7.x]
platform: [ubuntu2004, macos, macos_arm64]
tasks:
verify_targets:
name: Verify build targets
bazel: ${{ bazel }}
platform: ${{ platform }}
build_targets:
- "@toolchains_llvm//toolchain:all"
- "@toolchains_llvm//platforms:all"
bcr_test_module:
module_path: tests
matrix:
bazel: [7.x]
platform: [ubuntu2004, macos, macos_arm64]
tasks:
run_test_module:
name: Run test module
bazel: ${{ bazel }}
platform: ${{ platform }}
build_targets:
- //:all
test_targets:
- //:all
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"integrity": "**leave this alone**",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/toolchains_llvm-{TAG}.tar.gz"
}

0 comments on commit 6117a35

Please sign in to comment.