File tree 1 file changed +11
-2
lines changed
1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change @@ -266,9 +266,18 @@ jobs:
266
266
- name : Install llvm-mingw
267
267
if : ${{ matrix.mingw == true }}
268
268
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 .
270
279
powershell Expand-Archive llvm-mingw*.zip -DestinationPath .
271
- del llvm-mingw*.zip
280
+ del llvm-mingw*.zip artifact.zip
272
281
mv llvm-mingw* c:\llvm-mingw
273
282
echo "c:\llvm-mingw\bin" | Out-File -FilePath $Env:GITHUB_PATH -Encoding utf8 -Append
274
283
- name : Simulate a from-scratch build of llvm-mingw
You can’t perform that action at this time.
0 commit comments