Skip to content

Commit

Permalink
Configure automatic bcr pushing.
Browse files Browse the repository at this point in the history
  • Loading branch information
helly25 committed Feb 24, 2025
1 parent d144942 commit 0fdbc3a
Show file tree
Hide file tree
Showing 6 changed files with 41 additions and 4 deletions.
Empty file added .bcr/config.yml
Empty file.
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/helly25/mbo",
"maintainers": [
{
"name": "helly25",
"email": "[email protected]",
"github": "helly25"
}
],
"repository": [
"github:helly25/mbo"
],
"versions": [],
"yanked_versions": {}
}
File renamed without changes.
19 changes: 19 additions & 0 deletions .bcr/presubmit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
matrix:
bazel:
- 7.x
- 8.x
platform:
- ubuntu2404
- macos
tasks:
verify_targets:
name: Verify build targets
platform: ${{ platform }}
bazel: ${{ bazel }}
build_flags:
- '--cxxopt=-std=c++20'
#bazel query 'kind(cc_binary,//...) - rdeps(//mbo/mope:mope,//...)'
build_targets:
- '@helly25_mbo//mbo/container:limited_set_benchmark'
- '@helly25_mbo//mbo/diff:unified_diff'
- '@helly25_mbo//mbo/file:glob'
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": "",
"strip_prefix": "{REPO}-{VERSION}",
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{TAG}.tar.gz"
}
6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,13 @@ repos:
- id: bazelmod-patch-applies
name: bazelmod-patch-applies
description: |
The patch in bazelmod/bazelmod.patch can be applied
The patch in .bcr/patches/bazelmod.patch can be applied
language: system
entry: patch
args: ["-p1", "--dry-run", "-i", "bazelmod/bazelmod.patch"]
args: ["-p1", "--dry-run", "-fi", ".bcr/patches/bazelmod.patch"]
pass_filenames: False
types: [text]



- repo: https://github.com/pre-commit/mirrors-clang-format
rev: v19.1.6
hooks:
Expand Down

0 comments on commit 0fdbc3a

Please sign in to comment.