Read-only mirrors. Development, issues and pull requests are on GitHub.

summaryrefslogtreecommitdiffhomepage
path: root/.github
diff options
context:
space:
mode:
authorLeitwolf112026-11-01 21:46:59 +0300
committerLeitwolf112026-11-01 21:46:59 +0300
commita371b0ff18fd18819e0624fcb9a8ad3d94f4ef25 (patch)
treec0198de51692d1a509cf4f8273ce7f274d7e0dd0 /.github
parent5cbd481125b881a4c2eed74050be9899eb3f23a7 (diff)
downloadcatch3-fix/cmake-install.tar.gz
Install again with CMakefix/cmake-install
cmake --install failed on extras/ParseAndAddCatchTests.cmake, which the rename to Catch3 removed while CMakeLists.txt kept listing it. No job ran an install, so nothing showed it. The Linux job now installs the library and finds the installed package. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to '.github')
-rw-r--r--.github/workflows/linux-builds.yml13
1 files changed, 13 insertions, 0 deletions
diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml
index 5290574b..a9c38c66 100644
--- a/.github/workflows/linux-builds.yml
+++ b/.github/workflows/linux-builds.yml
@@ -52,6 +52,19 @@ jobs:
- name: Test
run: ctest --test-dir build -j
+ - name: Install, and find the installed package
+ run: |
+ cmake --install build --prefix "$RUNNER_TEMP/catch3"
+ mkdir "$RUNNER_TEMP/consumer"
+ cat > "$RUNNER_TEMP/consumer/CMakeLists.txt" <<'EOF'
+ cmake_minimum_required(VERSION 3.16)
+ project(Consumer CXX)
+ find_package(Catch3 REQUIRED)
+ EOF
+ cmake -S "$RUNNER_TEMP/consumer" -B "$RUNNER_TEMP/consumer/build" \
+ -GNinja -DCMAKE_CXX_COMPILER=clang++ \
+ -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/catch3"
+
thread-sanitizer:
name: Ubuntu 26.04, C++17, ThreadSanitizer and UBSan
runs-on: ubuntu-26.04