Skip to content

Commit 439e927

Browse files
committed
Use Bash to set the path properly
1 parent a4855b2 commit 439e927

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/build.yaml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -486,6 +486,15 @@ jobs:
486486
- { toolchain: 'mingw', arch: x86-64, qt: '6.7.3', aqtTools: 'tools_mingw1310' }
487487
- { toolchain: 'mingw', arch: x86-64, qt: '6.8.0', aqtTools: 'tools_mingw1310' }
488488
steps:
489+
- if: matrix.toolchain != 'msvc'
490+
shell: bash
491+
run: tee -a '$GITHUB_PATH" <<< 'C:\msys64\mingw64\bin'
492+
- name: Install LCOV
493+
if: matrix.toolchain != 'msvc'
494+
run: pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
495+
- run: lcov --version
496+
- run: lcov --version
497+
shell: bash
489498
- uses: actions/checkout@v4
490499
- name: Install host Qt for cross-compilation
491500
if: matrix.arch == 'arm64'
@@ -521,12 +530,7 @@ jobs:
521530
name: aqtinstall-log-win-${{ matrix.arch }}-${{ matrix.toolchain }}-${{ matrix.qt }}
522531
path: aqtinstall.log
523532
if-no-files-found: error
524-
- name: Install LCOV
525-
if: matrix.toolchain != 'msvc'
526-
run: |
527-
C:\msys64\usr\bin\pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
528-
echo C:\msys64\mingw64\bin >> "%GITHUB_PATH%"
529-
- run: dir C:\msys64\ /s
533+
#- run: dir C:\msys64\ /s
530534
- name: Configure cross-compilation
531535
if: matrix.arch == 'arm64'
532536
shell: bash
@@ -571,9 +575,7 @@ jobs:
571575
run: ctest --output-on-failure --test-dir "%RUNNER_TEMP%" --verbose
572576
- run: dir . /s
573577
working-directory: ${{ runner.temp }}
574-
- run: |
575-
lcov --version
576-
lcov -capture --directory . --output-file coverage.info
578+
- run: lcov --capture --directory . --output-file coverage.info
577579
shell: bash #C:\msys64\usr\bin\bash.exe --noprofile --norc -e -o pipefail '{0}'
578580
working-directory: ${{ runner.temp }}
579581
- name: Collate test coverage

0 commit comments

Comments
 (0)