diff options
| author | Leitwolf | 2026-11-18 03:25:42 +0300 |
|---|---|---|
| committer | GitHub | 2026-11-18 03:25:42 +0300 |
| commit | b5c71571e0b00e91e5a3ac1230ad8fa883fc680d (patch) | |
| tree | 3edca41d0e8890a3b3de12a362074c40ecc0eb97 /.github | |
| parent | 1968fad3a2504a398807e500af292ccfd6f805fc (diff) | |
| parent | e69ece56074c7a1a96d8db3b6b5a76ac2d872adc (diff) | |
| download | catch3-fix/tolower-sign-conversion.tar.gz | |
Merge branch 'devel' into fix/tolower-sign-conversionfix/tolower-sign-conversion
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 |