From fe6a4f0090b9b5ee7ea2c216a40efff54ff80be3 Mon Sep 17 00:00:00 2001 From: Paul Colby Date: Sun, 13 Oct 2024 22:48:20 +1100 Subject: [PATCH] Always use msys2's gcov Just for an initial test. --- .github/workflows/build.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index ff259275a..19bcba161 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -552,7 +552,8 @@ jobs: - name: Build env: CMAKE_MESSAGE_LOG_LEVEL: VERBOSE - CODECOV_GCOV: ${{ matrix.arch == 'x86' && 'C:/mingw64/bin/gcov.exe' || '' }} + #CODECOV_GCOV: ${{ matrix.arch == 'x86' && 'C:/mingw64/bin/gcov.exe' || '' }} + CODECOV_GCOV: 'C:/mingw64/bin/gcov.exe' ENABLE_COVERAGE: ${{ matrix.toolchain == 'msvc' && 'false' || 'true' }} PROJECT_BUILD_ID: ${{ github.run_number }}.win.${{ matrix.arch }}.${{ matrix.toolchain }}.qt-${{ matrix.qt }} run: | @@ -583,9 +584,9 @@ jobs: run: ctest --output-on-failure --test-dir "%RUNNER_TEMP%" --verbose - run: dir . /s working-directory: ${{ runner.temp }} - #- run: lcov --capture --directory . --output-file coverage.info - # shell: bash #C:\msys64\usr\bin\bash.exe --noprofile --norc -e -o pipefail '{0}' - # working-directory: ${{ runner.temp }} + - run: lcov --capture --directory . --output-file coverage.info + shell: bash #C:\msys64\usr\bin\bash.exe --noprofile --norc -e -o pipefail '{0}' + working-directory: ${{ runner.temp }} - name: Collate test coverage if: matrix.toolchain != 'msvc' run: cmake --build "%RUNNER_TEMP%" --target coverage --verbose