catch2/.github/workflows/linux-bazel-builds.yml
2025-02-03 14:36:43 +01:00

26 lines
681 B
YAML

name: Bazel build
on: [push, pull_request]
jobs:
build_and_test:
name: Linux Ubuntu Bazel build <GCC 11.2.0>
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-22.04-arm]
compilation_mode: [fastbuild, dbg, opt]
steps:
- uses: actions/checkout@v4
- 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
- name: Build Catch2
run: |
bazelisk build --compilation_mode=${{ matrix.compilation_mode }} //...