2022-11-11 16:54:22 +01:00
|
|
|
name: Bazel build
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2025-02-03 14:36:43 +01:00
|
|
|
build_and_test:
|
|
|
|
name: Linux Ubuntu Bazel build <GCC 11.2.0>
|
|
|
|
runs-on: ${{ matrix.os }}
|
2022-11-11 16:54:22 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
2025-02-03 14:36:43 +01:00
|
|
|
os: [ubuntu-22.04, ubuntu-22.04-arm]
|
2022-11-11 16:54:22 +01:00
|
|
|
compilation_mode: [fastbuild, dbg, opt]
|
|
|
|
steps:
|
2025-02-03 14:36:43 +01:00
|
|
|
- uses: actions/checkout@v4
|
2022-11-11 16:54:22 +01:00
|
|
|
|
2025-02-03 14:36:43 +01:00
|
|
|
- name: Mount bazel cache
|
|
|
|
uses: actions/cache@v4
|
|
|
|
with:
|
|
|
|
path: "/home/runner/.cache/bazel"
|
|
|
|
# Use the OS name in the cache key to separate caches per platform.
|
|
|
|
key: bazel-${{ matrix.os }}-gcc11
|
2022-11-11 16:54:22 +01:00
|
|
|
|
2025-02-03 14:36:43 +01:00
|
|
|
- name: Build Catch2
|
|
|
|
run: |
|
|
|
|
bazelisk build --compilation_mode=${{ matrix.compilation_mode }} //...
|