File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -454,6 +454,9 @@ jobs:
454454
455455 # Run llvm-mingw's tests with the cross-built toolchains from above.
456456 test-toolchain :
457+ defaults :
458+ run :
459+ shell : msys2 {0}
457460 strategy :
458461 fail-fast : false
459462 matrix :
@@ -480,22 +483,25 @@ jobs:
480483 - x86_64
481484 runs-on : ${{startsWith(matrix.arch, 'a') && 'windows-11-arm' || 'windows-latest'}}
482485 steps :
486+ - uses : msys2/setup-msys2@v2
487+ with :
488+ msystem : msys
489+ install : >-
490+ unzip
491+ make
483492 - name : Unpack toolchain
484493 run : |
485494 curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/nightly/llvm-mingw-nightly-ucrt-${{matrix.arch}}.zip
486- 7z x llvm-mingw-*.zip
487- del llvm-mingw-*.zip
488- mv llvm-mingw-* c:\llvm-mingw
489- echo "c:\llvm-mingw\busybox\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
490- echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
495+ unzip -q llvm-mingw-*.zip
496+ rm llvm-mingw-*.zip
497+ mv llvm-mingw-* /llvm-mingw
491498 - uses : actions/checkout@v6
492499 - name : Run tests
493- shell : sh
494500 run : |
495501 i=0
496502 while [ $i -lt 10 ]; do
497503 echo $i
498- ARCHS="${{matrix.arch}}" ./run-tests.sh c: /llvm-mingw || exit 1
504+ ARCHS="${{matrix.arch}}" ./run-tests.sh /llvm-mingw || exit 1
499505 i=$(($i+1))
500506 done
501507
You can’t perform that action at this time.
0 commit comments