Skip to content

Commit

Permalink
Use msys2/setup-msys2@v2 action
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 13, 2024
1 parent 8f2836e commit 3025521
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -521,11 +521,16 @@ jobs:
name: aqtinstall-log-win-${{ matrix.arch }}-${{ matrix.toolchain }}-${{ matrix.qt }}
path: aqtinstall.log
if-no-files-found: error
- name: Install LCOV
- name: Setup MSYS2
if: matrix.toolchain != 'msvc'
run: |
C:\msys64\usr\bin\pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
echo 'C:\msys64\mingw64\bin' >> "%GITHUB_PATH%"
uses: msys2/setup-msys2@v2
with:
install: mingw-w64-x86_64-lcov
#- name: Install LCOV

Check warning on line 529 in .github/workflows/build.yaml

View workflow job for this annotation

GitHub Actions / yamllint

529:8 [comments] missing starting space in comment
# if: matrix.toolchain != 'msvc'
# run: |
# C:\msys64\usr\bin\pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
# echo 'C:\msys64\mingw64\bin' >> "%GITHUB_PATH%"
- run: dir C:\msys64\ /s
- name: Configure cross-compilation
if: matrix.arch == 'arm64'
Expand All @@ -546,13 +551,13 @@ jobs:
PROJECT_BUILD_ID: ${{ github.run_number }}.win.${{ matrix.arch }}.${{ matrix.toolchain }}.qt-${{ matrix.qt }}
run: |
cmake -D CMAKE_BUILD_TYPE=Release ^
-D CODECOV_GCOV=D:\a\dokit\Qt\Tools\mingw810_32\bin\gcov.exe ^
-D CODECOV_LCOV=C:\msys64\mingw64\bin\lcov ^
-D ENABLE_COVERAGE=%ENABLE_COVERAGE% ^
-D QT_HOST_PATH=%qtHostPath% ^
-D QT_INSTALL_DOCS=%RUNNER_WORKSPACE%\Qt\Docs\Qt-${{ matrix.qt }} ^
-G "${{ matrix.generator }}" -S "%GITHUB_WORKSPACE%" -B "%RUNNER_TEMP%"
cmake --build "%RUNNER_TEMP%" --verbose
# -D CODECOV_GCOV=D:\a\dokit\Qt\Tools\mingw810_32\bin\gcov.exe ^
# -D CODECOV_LCOV=C:\msys64\mingw64\bin\lcov ^
- name: Capture build-output variables
id: post-build
shell: bash
Expand Down

0 comments on commit 3025521

Please sign in to comment.