Skip to content

Commit

Permalink
improve bazel github ci
Browse files Browse the repository at this point in the history
  • Loading branch information
anonrig committed Dec 26, 2024
1 parent fb0e5bd commit 802794d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions .github/workflows/ubuntu-bazel.yml → .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Ubuntu 22.04 Bazel
name: Bazel

on:
pull_request:
Expand All @@ -21,15 +21,31 @@ concurrency:
cancel-in-progress: true

jobs:
ubuntu-bazel:
runs-on: ubuntu-22.04
macos:
runs-on: macos-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build & Test
run: bazel test //...
ubuntu:
strategy:
fail-fast: false
matrix:
shared: [ON, OFF]
cxx: [g++-12, clang++-14]
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: bazelbuild/setup-bazelisk@v3
- uses: bazel-contrib/setup-bazel@bbf8fe8b219f642c7f8bc673215f28eb1d9dec51 # v0.10.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build & Test
run: bazel test //...
env:
Expand Down

0 comments on commit 802794d

Please sign in to comment.