Skip to content

Rework CountMembers<T> #77

Rework CountMembers<T>

Rework CountMembers<T> #77

Workflow file for this run

name: Build and Test
on:
merge_group:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
# FIXME: We're having a linker error wrt. Catch2 on Windows with MSVC
windows-msvc:
name: "Windows - MSVC"
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: choco install ninja
- name: "vcpkg: Install dependencies"
uses: lukka/[email protected]
id: runvcpkg
with:
vcpkgDirectory: ${{ runner.workspace }}/vcpkg
vcpkgGitCommitId: 80403036a665cb8fcc1a1b3e17593d20b03b2489
- name: configure
run: cmake --preset windows-cl-release -D REFLECTION_TESTING=ON
env:
VCPKG_ROOT: "${{ runner.workspace }}/vcpkg"
- name: build
run: cmake --build --preset windows-cl-release
- name: test
run: ctest --preset windows-cl-release -VV
ubuntu24-clang:
name: "Ubuntu Linux - Clang ${{ matrix.clang_version }}"
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
clang_version: [17, 18]
steps:
- uses: actions/checkout@v4
- name: Install clang
run: |
wget https://apt.llvm.org/llvm.sh
chmod +x llvm.sh
sudo ./llvm.sh ${{ matrix.clang_version }}
- name: Install ninja and catch2
run: sudo apt-get install ninja-build catch2
- name: configure
run: cmake --preset linux-clang-release -D REFLECTION_TESTING=ON
- name: build
run: cmake --build --preset linux-clang-release
- name: test
run: ctest --preset linux-clang-release -VV
ubuntu24-gcc:
name: "Ubuntu Linux - GCC ${{ matrix.gcc_version }}"
runs-on: ubuntu-24.04
strategy:
fail-fast: false
matrix:
gcc_version: [13, 14]
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: sudo apt-get install ninja-build catch2 g++-${{ matrix.gcc_version }}
- name: configure
run: cmake --preset linux-gcc-release -D REFLECTION_TESTING=ON
- name: build
run: cmake --build --preset linux-gcc-release
- name: test
run: ctest --preset linux-gcc-release -VV