-
Notifications
You must be signed in to change notification settings - Fork 3
Prepare repository for BCR release #37
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
GuillaumeLagrange
merged 4 commits into
main
from
cod-1556-any-plans-for-bazel-registry
Nov 21, 2025
Merged
Changes from all commits
Commits
Show all changes
4 commits
Select commit
Hold shift + click to select a range
c66d550
chore: use c++17 to build core library
GuillaumeLagrange 18f9286
feat: prepare repository for BCR release
GuillaumeLagrange 3a4f42b
feat: update release process to add full tarball and bump versions
GuillaumeLagrange f23b68b
feat: add support for automated BCR publication
GuillaumeLagrange File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| moduleRoots: | ||
| - "core" | ||
| - "google_benchmark" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "homepage": "https://codspeed.io", | ||
| "maintainers": [ | ||
| { | ||
| "name": "Arthur Pastel", | ||
| "email": "[email protected]", | ||
| "github": "art049" | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:CodSpeedHQ/codspeed-cpp" | ||
| ], | ||
| "versions": [], | ||
| "yanked_versions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| bcr_test_module: | ||
| module_path: "" | ||
| matrix: | ||
| platform: | ||
| - debian10 | ||
| - macos | ||
| - ubuntu2004 | ||
| - windows | ||
| bazel: | ||
| - 7.x | ||
| - 8.x | ||
| tasks: | ||
| verify_instrumentation: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--//:codspeed_mode=instrumentation" | ||
| build_targets: | ||
| - "//:codspeed" | ||
| - "//:instrument_hooks" | ||
| verify_simulation: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--//:codspeed_mode=simulation" | ||
| build_targets: | ||
| - "//:codspeed" | ||
| - "//:instrument_hooks" | ||
| verify_walltime: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--//:codspeed_mode=walltime" | ||
| build_targets: | ||
| - "//:codspeed" | ||
| - "//:instrument_hooks" | ||
| verify_off: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--//:codspeed_mode=off" | ||
| build_targets: | ||
| - "//:codspeed" | ||
| - "//:instrument_hooks" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/codspeed-cpp-{TAG}.tar.gz", | ||
| "integrity": "{INTEGRITY}", | ||
| "strip_prefix": "codspeed-cpp-{TAG}/core" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,15 @@ | ||
| { | ||
| "homepage": "https://codspeed.io", | ||
| "maintainers": [ | ||
| { | ||
| "name": "Arthur Pastel", | ||
| "email": "[email protected]", | ||
| "github": "art049" | ||
| } | ||
| ], | ||
| "repository": [ | ||
| "github:CodSpeedHQ/codspeed-cpp" | ||
| ], | ||
| "versions": [], | ||
| "yanked_versions": {} | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| bcr_test_module: | ||
| module_path: "" | ||
| matrix: | ||
| platform: | ||
| - debian10 | ||
| - macos | ||
| - ubuntu2004 | ||
| - windows | ||
| bazel: | ||
| - 7.x | ||
| - 8.x | ||
| tasks: | ||
| verify_instrumentation: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--@codspeed_core//:codspeed_mode=instrumentation" | ||
GuillaumeLagrange marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| build_targets: | ||
| - "//:benchmark" | ||
| - "//:benchmark_main" | ||
| verify_simulation: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--@codspeed_core//:codspeed_mode=simulation" | ||
| build_targets: | ||
| - "//:benchmark" | ||
| - "//:benchmark_main" | ||
| verify_walltime: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--@codspeed_core//:codspeed_mode=walltime" | ||
| build_targets: | ||
| - "//:benchmark" | ||
| - "//:benchmark_main" | ||
| verify_off: | ||
| platform: ${{ platform }} | ||
| bazel: ${{ bazel }} | ||
| build_flags: | ||
| - "--@codspeed_core//:codspeed_mode=off" | ||
| build_targets: | ||
| - "//:benchmark" | ||
| - "//:benchmark_main" | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| { | ||
| "url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/codspeed-cpp-{TAG}.tar.gz", | ||
| "integrity": "{INTEGRITY}", | ||
| "strip_prefix": "codspeed-cpp-{TAG}/google_benchmark" | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| name: Publish to Bazel Central Registry | ||
|
|
||
| on: | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
| inputs: | ||
| tag_name: | ||
| description: 'Release tag to publish (e.g., v1.4.0)' | ||
| required: true | ||
| type: string | ||
|
|
||
| jobs: | ||
| publish-to-bcr: | ||
| uses: bazel-contrib/publish-to-bcr/.github/workflows/[email protected] | ||
| with: | ||
| tag_name: ${{ github.event.release.tag_name || inputs.tag_name }} | ||
| registry_fork: CodSpeedHQ/bazel-central-registry | ||
| # TODO: Change this back to bazel-central-registry when initial submission has been approved | ||
| registry: CodSpeedHQ/bazel-central-registry | ||
| # If we need this, because it requries tweaking permissions on the BCR_PUBLISH_TOKEN secret | ||
| # Currently it only has access to the bazel-central-registry repo | ||
| attest: false | ||
GuillaumeLagrange marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| secrets: | ||
| publish_token: ${{ secrets.BCR_PUBLISH_TOKEN }} | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,10 +1,20 @@ | ||
| # This MODULE.bazel is for local development in the monorepo. | ||
| # Individual modules have their own MODULE.bazel files. | ||
|
|
||
| bazel_dep(name = "rules_cc", version = "0.0.17") | ||
| bazel_dep(name = "bazel_skylib", version = "1.7.1") | ||
| bazel_dep(name = "platforms", version = "0.0.10") | ||
| bazel_dep(name = "instrument_hooks", version = "1.0.0") | ||
|
|
||
| git_override( | ||
| module_name = "instrument_hooks", | ||
| commit = "42ed74076c697c2f06c5ac81a84ccee983d7f140", | ||
| remote = "https://github.com/CodSpeedHQ/instrument-hooks", | ||
| # Local path overrides for development - these point to the subdirectories | ||
| # When published to BCR, users will get the published versions instead | ||
| bazel_dep(name = "codspeed_core") | ||
| local_path_override( | ||
| module_name = "codspeed_core", | ||
| path = "core", | ||
| ) | ||
|
|
||
| bazel_dep(name = "codspeed_google_benchmark_compat") | ||
| local_path_override( | ||
| module_name = "codspeed_google_benchmark_compat", | ||
| path = "google_benchmark", | ||
| ) |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.