Skip to content

Commit 2dca920

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

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

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

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -266,9 +266,18 @@ jobs:
266266
- name: Install llvm-mingw
267267
if: ${{ matrix.mingw == true }}
268268
run: |
269-
curl -LO https://github.com/mstorsjo/llvm-mingw/releases/download/20250114/llvm-mingw-20250114-ucrt-x86_64.zip
269+
ARTIFACT_URL=https://github.com/jeremyd2019/llvm-mingw/actions/runs/15080594305/artifacts/3143907630
270+
case "$ARTIFACT_URL" in
271+
https://github.com/*/actions/runs/[0-9]*/artifacts/[0-9]*)
272+
ARTIFACT_URL="$(echo "$ARTIFACT_URL" |
273+
sed 's|^\(https://\)\(github.com/\)\(.*/actions/\)runs/[0-9]*/\(artifacts/[0-9]*\)$|\1api.\2repos/\3\4/zip|')"
274+
;;
275+
esac
276+
curl -H "Authorization: token ${{secrets.GITHUB_TOKEN}}" \
277+
-fLo artifact.zip "$ARTIFACT_URL"
278+
powershell Expand-Archive artifact.zip -DestinationPath .
270279
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
271-
del llvm-mingw*.zip
280+
del llvm-mingw*.zip artifact.zip
272281
mv llvm-mingw* c:\llvm-mingw
273282
echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
274283
- name: Simulate a from-scratch build of llvm-mingw

0 commit comments

Comments
 (0)