Repository navigation
Auto-update pre-commit hooks #256
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |