Skip to content

Commit

Permalink
Formalise the building of the path variable
Browse files Browse the repository at this point in the history
  • Loading branch information
pcolby committed Oct 13, 2024
1 parent 791229c commit a87cbd9
Showing 1 changed file with 21 additions and 11 deletions.
32 changes: 21 additions & 11 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -485,22 +485,32 @@ jobs:
- { toolchain: 'mingw', arch: x86-64, qt: '6.7.3', aqtTools: 'tools_mingw1310' }
- { toolchain: 'mingw', arch: x86-64, qt: '6.8.0', aqtTools: 'tools_mingw1310' }
steps:
- if: matrix.toolchain != 'msvc'
shell: bash
run: |
tee -a "$GITHUB_PATH" <<< 'C:\msys64\usr\bin'
#tee -a "$GITHUB_PATH" <<< 'C:\msys64\mingw64\bin'
- if: matrix.arch == 'x86' && matrix.toolchain == 'mingw'
shell: bash
run: tee -a "$GITHUB_PATH" <<< 'C:\mingw32\bin'
- run: echo "%PATH%"
- run: echo "$PATH"
shell: bash
#- if: matrix.toolchain != 'msvc'
# shell: bash
# run: |
# tee -a "$GITHUB_PATH" <<< 'C:\msys64\usr\bin'
#- if: matrix.arch == 'x86' && matrix.toolchain == 'mingw'
# shell: bash
# run: tee -a "$GITHUB_PATH" <<< 'C:\mingw32\bin'
- name: Install LCOV
if: matrix.toolchain != 'msvc'
run: pacman --sync --noconfirm --verbose mingw-w64-x86_64-lcov
- run: /c/msys64/mingw64/bin/lcov --version
shell: bash
- name: Configure path
if: matrix.toolchain != 'msvc'
shell: bash
run: |
# We need to add MSYS2's mingw64 to the path so that LCOV can find it's own geninfo utility. However, we do
# this before all other mingw installs (including those from install-qt-action) so those take precendence.
tee -a "$GITHUB_PATH" <<< 'C:\msys64\mingw64\bin'
# For 32-bit (x86) MinGW builds, place GitHub's mingw32 at the head of the path (install-qt-actions could
# supersede this below, but we never install (32-bit) mingw32 via install-qt-actions).
[[ '${{ matrix.toolchain }}' != 'mingw' || '${{ matrix.arch }}' != 'x86' ]] ||
tee -a "$GITHUB_PATH" <<< 'C:\mingw32\bin'
- run: echo "%PATH%"
- run: echo "$PATH"
shell: bash
#- run: dir C:\msys64 /s
#- run: dir C:\
#- run: C:\mingw64\bin\gcov.exe --version
Expand Down

0 comments on commit a87cbd9

Please sign in to comment.