Skip to content

Commit

Permalink
Add bazel BCR configuration files (#380)
Browse files Browse the repository at this point in the history
Should allow https://github.com/apps/publish-to-bcr to push releases to
BCR automatically.

Co-authored-by: Keith Smiley <[email protected]>
  • Loading branch information
jpsim and keith authored Jan 13, 2023
1 parent 84f31da commit 0db8860
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 0 deletions.
15 changes: 15 additions & 0 deletions .bcr/metadata.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"homepage": "https://github.com/jpsim/Yams",
"maintainers": [
{
"email": "[email protected]",
"github": "jpsim",
"name": "JP Simard"
}
],
"repository": [
"github:jpsim/Yams"
],
"versions": [],
"yanked_versions": {}
}
24 changes: 24 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
shell_commands: &shell_commands
- "echo --- Downloading and extracting Swift $SWIFT_VERSION to $SWIFT_HOME"
- "mkdir $SWIFT_HOME"
- "curl https://download.swift.org/swift-${SWIFT_VERSION}-release/ubuntu2004/swift-${SWIFT_VERSION}-RELEASE/swift-${SWIFT_VERSION}-RELEASE-ubuntu20.04.tar.gz | tar xvz --strip-components=1 -C $SWIFT_HOME"

tasks:
verify_targets_linux:
name: Verify targets (Linux)
platform: ubuntu2004
environment:
CC: "clang"
SWIFT_VERSION: "5.7.2"
SWIFT_HOME: "$HOME/swift-$SWIFT_VERSION"
PATH: "$PATH:$SWIFT_HOME/usr/bin"
shell_commands: *shell_commands
build_flags:
- "--action_env=PATH"
test_targets:
- '@yams//Tests/...'
verify_targets_macos:
name: Verify targets (macOS)
platform: macos
test_targets:
- '@yams//Tests/...'
5 changes: 5 additions & 0 deletions .bcr/source.template.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"url": "https://github.com/jpsim/Yams/archive/refs/tags/{TAG}.tar.gz",
"integrity": "",
"strip_prefix": "Yams-{TAG}"
}

0 comments on commit 0db8860

Please sign in to comment.