diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 58c8502509..f75e1c2fd8 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml @@ -349,7 +349,8 @@ jobs: timeout-minutes: 2 # Downgrade to a known good MSYS2 runtime version to avoid the performance regression # causing runtests.pl to run at 2-3x reduced speed. - run: exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst + run: | + [[ "$(uname -a)" = *' 3.5'* ]] && exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst - name: 'run tests' if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }} @@ -520,7 +521,8 @@ jobs: timeout-minutes: 2 # Downgrade to a known good MSYS2 runtime version to avoid the performance regression # causing runtests.pl to run at 2-3x reduced speed. - run: exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst + run: | + [[ "$(uname -a)" = *' 3.5'* ]] && exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst - name: 'run tests' if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }} @@ -996,7 +998,8 @@ jobs: timeout-minutes: 2 # Downgrade to a known good MSYS2 runtime version to avoid the performance regression # causing runtests.pl to run at 2-3x reduced speed. - run: exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst + run: | + [[ "$(uname -a)" = *' 3.5'* ]] && exec /usr/bin/pacman --noconfirm --noprogressbar --upgrade https://mirror.msys2.org/msys/x86_64/msys2-runtime-3.5.4-8-x86_64.pkg.tar.zst - name: 'run tests' if: ${{ matrix.tflags != 'skipall' && matrix.tflags != 'skiprun' }}