]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Enable code coverage build only when code coverage report name specified.
authorNathan Moinvaziri <nathan@nathanm.com>
Thu, 3 Feb 2022 22:31:10 +0000 (14:31 -0800)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Sun, 6 Feb 2022 15:51:46 +0000 (16:51 +0100)
.github/workflows/cmake.yml

index 8319fa1a7fcf5a60716ba450462d25bb74da4f0e..187e37e0b93e24be50b07643f648c98ce6fcf958 100644 (file)
@@ -410,7 +410,7 @@ jobs:
       run: |
         mkdir ${{ matrix.build-dir || '.not-used' }}
         cd ${{ matrix.build-dir || '.' }}
-        cmake ${{ matrix.build-src-dir || '.' }} ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} -DBUILD_SHARED_LIBS=OFF -DWITH_FUZZERS=ON -DWITH_CODE_COVERAGE=ON -DWITH_MAINTAINER_WARNINGS=ON
+        cmake ${{ matrix.build-src-dir || '.' }} ${{ matrix.cmake-args }} -DCMAKE_BUILD_TYPE=${{ matrix.build-config || 'Release' }} -DBUILD_SHARED_LIBS=OFF -DWITH_FUZZERS=ON ${{ matrix.codecov && '-DWITH_CODE_COVERAGE=ON' }} -DWITH_MAINTAINER_WARNINGS=ON
       env:
         CC: ${{ matrix.compiler }}
         CFLAGS: ${{ matrix.cflags }}