Skip to content

Commit ce1573e

Browse files
committed
CI: use test llvm-mingw toolchain
1 parent 4d0ed6d commit ce1573e

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/libcxx-build-and-test.yaml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -263,10 +263,24 @@ jobs:
263263
if: ${{ matrix.mingw != true }}
264264
run: |
265265
choco install -y llvm --version=19.1.7 --allow-downgrade
266+
- name: Download test llvm-mingw
267+
if: ${{ matrix.mingw == true }}
268+
shell: bash
269+
run: |
270+
ARTIFACT_URL=https://github.com/jeremyd2019/llvm-mingw/actions/runs/15080594305/artifacts/3143907630
271+
case "$ARTIFACT_URL" in
272+
https://github.com/*/actions/runs/[0-9]*/artifacts/[0-9]*)
273+
ARTIFACT_URL="$(echo "$ARTIFACT_URL" |
274+
sed 's|^\(https://\)\(github.com/\)\(.*/actions/\)runs/[0-9]*/\(artifacts/[0-9]*\)$|\1api.\2repos/\3\4/zip|')"
275+
;;
276+
esac
277+
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
278+
-fLo artifact.zip "$ARTIFACT_URL"
279+
powershell Expand-Archive artifact.zip -DestinationPath .
280+
rm -f artifact.zip
266281
- name: Install llvm-mingw
267282
if: ${{ matrix.mingw == true }}
268283
run: |
269-
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-ucrt-x86_64.zip
270284
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
271285
del llvm-mingw*.zip
272286
mv llvm-mingw* c:\llvm-mingw

0 commit comments

Comments
 (0)