Skip to content

Bump CMake policy version to 4.4 #245

Bump CMake policy version to 4.4

Bump CMake policy version to 4.4 #245

# SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
name: Catch2 Exemplar Test
on:
push:
branches:
- main
pull_request:
jobs:
catch2-exemplar-test:
runs-on: ubuntu-latest
container: ghcr.io/bemanproject/infra-containers-gcc:latest
name: "Catch2 exemplar smoke test"
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Test catch2 exemplar
run: |
cd cookiecutter
source ./check_cookiecutter.sh
cookiecutter_venv_path=$(mktemp --directory --dry-run)
setup_venv "$cookiecutter_venv_path"
stamp "$PWD" "./catch2_exemplar" "catch2" "true"
cd catch2_exemplar/exemplar
cmake -B build -DCMAKE_PROJECT_TOP_LEVEL_INCLUDES=./infra/cmake/use-fetch-content.cmake -DCMAKE_CXX_STANDARD=20 -DCMAKE_INSTALL_PREFIX=$PWD/dist
cmake --build build
ctest --test-dir build
cmake --install build