Skip to content

Made the CI a bit more uniform. #1

Made the CI a bit more uniform.

Made the CI a bit more uniform. #1

name: CI macOS/AppleClang
on:
push:
pull_request:
defaults:
run:
shell: bash
jobs:
build:
name: ${{ matrix.config.name }}
runs-on: ${{ matrix.config.os }}
strategy:
fail-fast: false
matrix:
config:
- {
name: "macOS 11 AppleClang 13",
os: macos-11,
build_type: Debug,
cc: "clang-13", cxx: "clang++-13"
}
- {
name: "macOS 13 AppleClang 14 C++11",
os: macos-13,
build_type: Debug,
cc: "clang-14", cxx: "clang++-14",
cxx_standard: 11
}
- {
name: "macOS 13 AppleClang 14 C++14",
os: macos-13,
build_type: Debug,
cc: "clang-14", cxx: "clang++-14",
cxx_standard: 14
}
- {
name: "macOS 13 AppleClang 14 C++17",
os: macos-13,
build_type: Debug,
cc: "clang-14", cxx: "clang++-14",
cxx_standard: 17
}
- {
name: "macOS 13 AppleClang 14 C++20",
os: macos-13,
build_type: Debug,
cc: "clang-14", cxx: "clang++-14",
cxx_standard: 20
}
steps:
- uses: actions/checkout@v3
- name: Build project
env:
CC: ${{ matrix.config.cc }}
CXX: ${{ matrix.config.cxx }}
run: |
cmake -S . -B build \
-DCMAKE_BUILD_TYPE=${{ matrix.config.build_type }} \
-DENABLE_TESTING=ON \
-DOVERRIDE_CXX_STANDARD_FOR_TESTS=${{ matrix.config.cxx_standard }} \
-DENABLE_SANITIZERS_IN_TESTS=${{ matrix.config.enable_sanitizers_in_tests }}
cmake --build build -j
- name: Run tests
run: |
ctest --test-dir build/ --verbose