From: Nathan Moinvaziri Date: Thu, 3 Feb 2022 22:31:10 +0000 (-0800) Subject: Enable code coverage build only when code coverage report name specified. X-Git-Tag: 2.1.0-beta1~393 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b52fec58ffe6585b3a4048c97805f150189a0895;p=thirdparty%2Fzlib-ng.git Enable code coverage build only when code coverage report name specified. --- diff --git a/.github/workflows/cmake.yml b/.github/workflows/cmake.yml index 8319fa1a7..187e37e0b 100644 --- a/.github/workflows/cmake.yml +++ b/.github/workflows/cmake.yml @@ -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 }}