| 1 | name: Bazel build |
| 2 | |
| 3 | on: [push, pull_request] |
| 4 | |
| 5 | jobs: |
| 6 | build_and_test_ubuntu: |
| 7 | name: Linux Ubuntu 22.04 Bazel build <GCC 11.2.0> |
| 8 | runs-on: ubuntu-22.04 |
| 9 | strategy: |
| 10 | matrix: |
| 11 | compilation_mode: [fastbuild, dbg, opt] |
| 12 | |
| 13 | steps: |
| 14 | - uses: actions/checkout@v3 |
| 15 | |
| 16 | - name: Mount bazel cache |
| 17 | uses: actions/cache@v3 |
| 18 | with: |
| 19 | path: "/home/runner/.cache/bazel" |
| 20 | key: bazel-ubuntu22-gcc11 |
| 21 | |
| 22 | - name: Build Catch2 |
| 23 | run: | |
| 24 | bazelisk build --compilation_mode=${{matrix.compilation_mode}} //... |