Skip to content

Commit 967b0d7

Browse files
committed
Revert "github: Run test-toolchain using busybox rather than msys2"
This reverts commit f5335a4.
1 parent a8909a2 commit 967b0d7

1 file changed

Lines changed: 13 additions & 7 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)