Skip to content

Commit

Permalink
Always use msys2's gcov
Browse files Browse the repository at this point in the history
Just for an initial test.
  • Loading branch information
pcolby committed Oct 13, 2024
1 parent cf1a046 commit fe6a4f0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit fe6a4f0

Please sign in to comment.