Skip to content

Add Bazel build rules #3

Add Bazel build rules

Add Bazel build rules #3

Workflow file for this run

name: Bazel CI
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
jobs:
bazel-build-and-test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
- uses: bazel-contrib/setup-bazel@0.15.0
with:
bazelisk-cache: true
disk-cache: ${{ github.workflow }}-${{ matrix.os }}
repository-cache: true
- name: Build with Bazel
run: bazel build --test_output=errors //...
- name: Test with Bazel
run: bazel test --test_output=errors //...