-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: Daniele Guarascio <[email protected]>
- Loading branch information
Showing
1,030 changed files
with
88,538 additions
and
24,061 deletions.
There are no files selected for viewing
This file contains 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 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 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,8 @@ | ||
# Bazel Central Registry | ||
|
||
When protobuf is released, we want it to be published to the Bazel Central | ||
Registry automatically: <https://registry.bazel.build> | ||
|
||
This folder contains configuration files to automate the publish step. See | ||
<https://github.com/bazel-contrib/publish-to-bcr/blob/main/templates/README.md> | ||
for authoritative documentation about these files. |
This file contains 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,23 @@ | ||
{ | ||
"homepage": "https://github.com/protocolbuffers/protobuf", | ||
"maintainers": [ | ||
{ | ||
"email": "[email protected]", | ||
"github": "zhangskz", | ||
"name": "Sandy Zhang" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "mkruskal-google", | ||
"name": "Mike Kruskal" | ||
}, | ||
{ | ||
"email": "[email protected]", | ||
"github": "googleberg", | ||
"name": "Jerry Berg" | ||
} | ||
], | ||
"repository": ["github:protocolbuffers/protobuf"], | ||
"versions": [], | ||
"yanked_versions": {} | ||
} |
This file contains 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,35 @@ | ||
matrix: | ||
platform: ["debian10", "macos", "ubuntu2004", "windows"] | ||
bazel: [6.x, 7.x] | ||
|
||
tasks: | ||
verify_targets: | ||
name: "Verify build targets" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--host_cxxopt=-std=c++14' | ||
- '--cxxopt=-std=c++14' | ||
build_targets: | ||
- '@protobuf//:protobuf' | ||
- '@protobuf//:protobuf_lite' | ||
- '@protobuf//:protoc' | ||
- '@protobuf//:test_messages_proto2_cc_proto' | ||
- '@protobuf//:test_messages_proto3_cc_proto' | ||
|
||
bcr_test_module: | ||
module_path: "examples" | ||
matrix: | ||
|
||
platform: ["debian10", "macos", "ubuntu2004", "windows"] | ||
bazel: [6.x, 7.x] | ||
tasks: | ||
run_test_module: | ||
name: "Run test module" | ||
platform: ${{ platform }} | ||
bazel: ${{ bazel }} | ||
build_flags: | ||
- '--host_cxxopt=-std=c++14' | ||
- '--cxxopt=-std=c++14' | ||
build_targets: | ||
- "//..." |
This file contains 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 @@ | ||
{ | ||
"integrity": "**leave this alone**", | ||
"strip_prefix": "{REPO}-{VERSION}", | ||
"url": "https://github.com/{OWNER}/{REPO}/releases/download/{TAG}/{REPO}-{VERSION}.zip" | ||
} |
This file contains 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 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 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,54 @@ | ||
name: Bazel Tests | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
safe-checkout: | ||
required: true | ||
description: "The SHA key for the commit we want to run over" | ||
type: string | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
examples: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
runner: [ ubuntu, windows, macos ] | ||
bazelversion: [ '7.1.1' ] | ||
bzlmod: [true, false ] | ||
include: | ||
- runner: ubuntu | ||
bazelversion: '6.4.0' | ||
bzlmod: true | ||
- runner: ubuntu | ||
bazelversion: '6.4.0' | ||
bzlmod: false | ||
runs-on: ${{ matrix.runner }}-latest | ||
name: Examples ${{ matrix.runner }} ${{ matrix.bazelversion }}${{ matrix.bzlmod && ' (bzlmod)' || '' }} | ||
steps: | ||
- name: Checkout pending changes | ||
uses: protocolbuffers/protobuf-ci/checkout@v3 | ||
with: | ||
ref: ${{ inputs.safe-checkout }} | ||
|
||
- name: Windows startup flags | ||
if: runner.os == 'Windows' | ||
working-directory: examples | ||
shell: bash | ||
run: echo "startup --output_user_root=C:/ --windows_enable_symlinks" >> .bazelrc | ||
|
||
- name: Configure Bazel version | ||
working-directory: examples | ||
shell: bash | ||
run: echo "${{ matrix.bazelversion }}" > .bazelversion | ||
|
||
- name: Run tests | ||
uses: protocolbuffers/protobuf-ci/bazel@v3 | ||
with: | ||
credentials: ${{ secrets.GAR_SERVICE_ACCOUNT }} | ||
bazel-cache: examples | ||
version: ${{ matrix.bazelversion }} | ||
bash: cd examples && bazel build //... $BAZEL_FLAGS --enable_bzlmod=${{ matrix.bzlmod }} |
Oops, something went wrong.