@@ -514,16 +514,16 @@ jobs:
514
514
${{ (startsWith(matrix.qt, '5.10.') || startsWith(matrix.qt, '5.11.')) && 'qt' ||
515
515
(startsWith(matrix.qt, '5') && 'qtcore qtbluetooth' || 'qtcore') }}
516
516
doc-modules : ${{ startsWith(matrix.qt, '6') && 'qtbluetooth' || '' }}
517
- - run : gcov.exe --version
518
- - run : C:\msys64\usr\bin\pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
519
- - run : dir C:\msys64 /s
520
517
- name : Upload aqtinstall log file
521
518
if : failure()
522
519
uses : actions/upload-artifact@v4
523
520
with :
524
521
name : aqtinstall-log-win-${{ matrix.arch }}-${{ matrix.toolchain }}-${{ matrix.qt }}
525
522
path : aqtinstall.log
526
523
if-no-files-found : error
524
+ - name : Install LCOV
525
+ if : toolchain != 'msvc'
526
+ run : C:\msys64\usr\bin\pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
527
527
- name : Configure cross-compilation
528
528
if : matrix.arch == 'arm64'
529
529
shell : bash
@@ -539,11 +539,12 @@ jobs:
539
539
- name : Build
540
540
env :
541
541
CMAKE_MESSAGE_LOG_LEVEL : VERBOSE
542
+ ENABLE_COVERAGE : ${{ matrix.os == 'msvc' && 'false' || 'true' }}
542
543
PROJECT_BUILD_ID : ${{ github.run_number }}.win.${{ matrix.arch }}.${{ matrix.toolchain }}.qt-${{ matrix.qt }}
543
544
run : |
544
545
cmake -D CMAKE_BUILD_TYPE=Release ^
545
546
-D CODECOV_LCOV=C:\msys64\mingw64\bin\lcov ^
546
- -D ENABLE_COVERAGE=true ^
547
+ -D ENABLE_COVERAGE=%ENABLE_COVERAGE% ^
547
548
-D QT_HOST_PATH=%qtHostPath% ^
548
549
-D QT_INSTALL_DOCS=%RUNNER_WORKSPACE%\Qt\Docs\Qt-${{ matrix.qt }} ^
549
550
-G "${{ matrix.generator }}" -S "%GITHUB_WORKSPACE%" -B "%RUNNER_TEMP%"
@@ -564,6 +565,7 @@ jobs:
564
565
if : matrix.arch != 'arm64'
565
566
run : ctest --output-on-failure --test-dir "%RUNNER_TEMP%" --verbose
566
567
- name : Collate test coverage
568
+ if : matrix.toolchain == 'msvc'
567
569
run : cmake --build "%RUNNER_TEMP%" --target coverage
568
570
- name : Upload test results
569
571
if : matrix.arch != 'arm64' && fromJSON(steps.post-build.outputs.tap)
0 commit comments