| name: bazel |
| |
| on: |
| push: {} |
| pull_request: {} |
| |
| env: |
| CMAKE_GENERATOR: Ninja |
| |
| permissions: |
| contents: read |
| |
| jobs: |
| build_and_test_default: |
| name: bazel.${{ matrix.os }} |
| runs-on: ${{ matrix.os }} |
| strategy: |
| fail-fast: false |
| matrix: |
| os: [ubuntu-latest, macos-latest, windows-latest] |
| steps: |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 |
| |
| - uses: bazel-contrib/setup-bazel@0.18.0 |
| with: |
| bazelisk-cache: true |
| disk-cache: ${{ github.workflow }} |
| respository-cache: true |
| |
| - name: build |
| run: | |
| bazel build //:benchmark //:benchmark_main //test/... |
| |
| - name: test |
| run: | |
| bazel test --test_output=all //test/... |