diff options
| author | Leitwolf | 2026-11-18 03:25:46 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-18 03:25:46 +0300 |
| commit | 89c8ed6229cb537b9c3511275bb75116b8126aa0 (patch) | |
| tree | 9368984516d3678f947aad2da3f8def1723757f6 /.github | |
| parent | d10868c9d0324f1817a67d5f3529b5d86050fb39 (diff) | |
| parent | e69ece56074c7a1a96d8db3b6b5a76ac2d872adc (diff) | |
| download | catch3-ci/fuzzing.tar.gz | |
Merge branch 'devel' into ci/fuzzingci/fuzzing
Diffstat (limited to '.github')
| -rw-r--r-- | .github/workflows/linux-builds.yml | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/.github/workflows/linux-builds.yml b/.github/workflows/linux-builds.yml index dd36df79..16be72a1 100644 --- a/.github/workflows/linux-builds.yml +++ b/.github/workflows/linux-builds.yml @@ -67,6 +67,27 @@ jobs: -GNinja -DCMAKE_CXX_COMPILER=clang++ \ -DCMAKE_PREFIX_PATH="$RUNNER_TEMP/catch3" + - name: Link the installed library with -lCatch3, and through pkg-config + run: | + prefix="$RUNNER_TEMP/catch3" + cat > "$RUNNER_TEMP/consumer/test.cpp" <<'EOF' + #include <Progmasoft/Catch3.hpp> + TEST_CASE("an installed Catch3 links by its name") { REQUIRE(1 + 1 == 2); } + EOF + # A debug build is named apart with a "d". + d="" + if [ "$BUILD_TYPE" = Debug ]; then d=d; fi + clang++ -std=c++${{matrix.std}} -I"$prefix/include" "$RUNNER_TEMP/consumer/test.cpp" \ + -L"$prefix/lib" "-lCatch3Main$d" "-lCatch3$d" -o "$RUNNER_TEMP/consumer/by-name" + "$RUNNER_TEMP/consumer/by-name" + export PKG_CONFIG_PATH="$prefix/share/pkgconfig" + # shellcheck disable=SC2046 # pkg-config prints several flags. + clang++ -std=c++${{matrix.std}} "$RUNNER_TEMP/consumer/test.cpp" \ + $(pkg-config --cflags --libs catch3-with-main) -o "$RUNNER_TEMP/consumer/by-pkg-config" + "$RUNNER_TEMP/consumer/by-pkg-config" + env: + BUILD_TYPE: ${{matrix.build_type}} + thread-sanitizer: name: Ubuntu 26.04, C++17, ThreadSanitizer and UBSan runs-on: ubuntu-26.04 |