blob: 656de7362106ff841a6d1d89e6dfa40f685cf860 [file] [edit]
name: Bazel Build
on:
push:
branches:
- main
pull_request:
branches:
- main
concurrency:
group: bazel-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
build:
name: Build on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
fail-fast: false
steps:
- name: Checkout Project
uses: actions/checkout@v7
- uses: bazel-contrib/setup-bazel@0.19.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}
repository-cache: true
- name: Build with Bazel
shell: bash
run: bazel build --lockfile_mode=error //...
- name: Build test module with Bazel
shell: bash
working-directory: ./test
run: bazel build //...