Skip to content

Commit b10a3c6

Browse files
committed
improve bazel github ci
1 parent fb0e5bd commit b10a3c6

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/workflows/ubuntu-bazel.yml

+10-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Ubuntu 22.04 Bazel
1+
name: Bazel
22

33
on:
44
pull_request:
@@ -21,15 +21,21 @@ concurrency:
2121
cancel-in-progress: true
2222

2323
jobs:
24-
ubuntu-bazel:
25-
runs-on: ubuntu-22.04
24+
bazel:
2625
strategy:
26+
fail-fast: false
2727
matrix:
28+
runs-on: [ubuntu-22.04, macos-latest]
2829
shared: [ON, OFF]
2930
cxx: [g++-12, clang++-14]
31+
runs-on: ${{matrix.runs-on}}
3032
steps:
3133
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32-
- uses: bazelbuild/setup-bazelisk@v3
34+
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
35+
with:
36+
bazelisk-cache: true
37+
disk-cache: ${{ github.workflow }}
38+
repository-cache: true
3339
- name: Build & Test
3440
run: bazel test //...
3541
env:

0 commit comments

Comments
 (0)