Skip to content

Commit 3a302b5

Browse files
authored
improve bazel github ci (#811)
1 parent fb0e5bd commit 3a302b5

File tree

3 files changed

+25
-4
lines changed

3 files changed

+25
-4
lines changed

.bazelignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
build
2+
cmake-build-debug-coverage
3+
cmake-build-debug
4+
cmake-build-release

.github/workflows/ubuntu-bazel.yml renamed to .github/workflows/bazel.yml

+21-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:
@@ -15,21 +15,38 @@ on:
1515

1616
permissions:
1717
contents: read
18+
actions: write
1819

1920
concurrency:
2021
group: ${{ github.workflow }}-${{ github.ref }}
2122
cancel-in-progress: true
2223

2324
jobs:
24-
ubuntu-bazel:
25-
runs-on: ubuntu-22.04
25+
macos:
26+
runs-on: macos-latest
27+
steps:
28+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
29+
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
30+
with:
31+
bazelisk-cache: true
32+
disk-cache: ${{ github.workflow }}
33+
repository-cache: true
34+
- name: Build & Test
35+
run: bazel test //...
36+
ubuntu:
2637
strategy:
38+
fail-fast: false
2739
matrix:
2840
shared: [ON, OFF]
2941
cxx: [g++-12, clang++-14]
42+
runs-on: ubuntu-22.04
3043
steps:
3144
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
32-
- uses: bazelbuild/setup-bazelisk@v3
45+
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
46+
with:
47+
bazelisk-cache: true
48+
disk-cache: ${{ github.workflow }}
49+
repository-cache: true
3350
- name: Build & Test
3451
run: bazel test //...
3552
env:

WORKSPACE

Whitespace-only changes.

0 commit comments

Comments
 (0)