Skip to content

Add Copier migration support and update template docs #259

Add Copier migration support and update template docs

Add Copier migration support and update template docs #259

# 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 copier
source ./check_copier.sh
copier_venv_path=$(mktemp --directory --dry-run)
setup_venv "$copier_venv_path"
stamp "$repo_root" "./catch2_exemplar" "catch2" "true"
cd catch2_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