diff --git a/.github/workflows/ubuntu-bazel.yml b/.github/workflows/bazel.yml similarity index 51% rename from .github/workflows/ubuntu-bazel.yml rename to .github/workflows/bazel.yml index c69a04fce..3a12a434c 100644 --- a/.github/workflows/ubuntu-bazel.yml +++ b/.github/workflows/bazel.yml @@ -1,4 +1,4 @@ -name: Ubuntu 22.04 Bazel +name: Bazel on: pull_request: @@ -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: