mirror of
https://github.com/catchorg/Catch2.git
synced 2025-03-01 00:56:23 +01:00
26 lines
681 B
YAML
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 }} //...
|