Skip to content

Commit 694b334

Browse files
committed
add bcr-presubmit pipeline
1 parent b73e30e commit 694b334

File tree

3 files changed

+11
-3
lines changed

3 files changed

+11
-3
lines changed

.bazelversion

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.3.2
1+
7.4.0

.github/workflows/ci.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@ jobs:
3030
path: bazel-disk
3131
key: bazel-disk-basic-${{matrix.compiler.name}}-${{matrix.mode.name}}-${{matrix.std.name}}-${{matrix.stdlib.name}}-${{matrix.feature.name}}-${{github.sha}}
3232
restore-keys: bazel-disk-basic-${{matrix.compiler.name}}-${{matrix.mode.name}}-${{matrix.std.name}}-${{matrix.stdlib.name}}-${{matrix.feature.name}}-
33-
- run: sudo apt install libc++-18-dev libc++abi-18-dev
33+
- if: ${{matrix.stdlib.name == 'libc++'}}
34+
run: sudo apt install libc++-18-dev libc++abi-18-dev
3435
- run: bazel test --disk_cache=bazel-disk --verbose_failures --test_output=errors ${{matrix.compiler.flag}} ${{matrix.mode.flag}} ${{matrix.std.flag}} ${{matrix.stdlib.flag}} ${{matrix.feature.flag}} test/...
3536
- uses: actions/cache/save@v4
3637
if: always()
@@ -61,7 +62,8 @@ jobs:
6162
path: bazel-disk
6263
key: bazel-disk-arenastring-${{matrix.compiler.name}}-${{matrix.stdlib.name}}-${{matrix.mutable.name}}-${{github.sha}}
6364
restore-keys: bazel-disk-arenastring-${{matrix.compiler.name}}-${{matrix.stdlib.name}}-${{matrix.mutable.name}}-
64-
- run: sudo apt install libc++-18-dev libc++abi-18-dev
65+
- if: ${{matrix.stdlib.name == 'libc++'}}
66+
run: sudo apt install libc++-18-dev libc++abi-18-dev
6567
- run: sed -i "/single_version_override.*protobuf/s/version = '[^']*'/version = '28.3.arenastring'/" MODULE.bazel
6668
- run: bazel test --compilation_mode=opt --disk_cache=bazel-disk --verbose_failures --test_output=errors --config=asan --registry=https://bcr.bazel.build --registry=file://%workspace%/registry ${{matrix.compiler.flag}} ${{matrix.stdlib.flag}} ${{matrix.mutable.flag}} test/...
6769
- uses: actions/cache/save@v4

.github/workflows/example.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,3 +33,9 @@ jobs:
3333
sudo apt install libboost-all-dev
3434
sudo apt install libprotobuf-dev
3535
- run: cd example/${{matrix.name}} && ./build.sh
36+
37+
bcr-presubmit:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- uses: actions/checkout@v4
41+
- run: cd example/bcr-presubmit && bazel run example

0 commit comments

Comments
 (0)