Skip to content

Commit 7c97577

Browse files
committed
ci: Use a mirror for musl downloads
The musl server has been a bit flaky, so the files we needed have been added to rust-lang mirrors. Update CI setup here to make use of them. Link: https://github.com/rust-lang/ci-mirrors/blob/15a6d341341e858c2b7be872a47a39f546cc6759/files/libc.toml
1 parent 83bd32f commit 7c97577

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

ci/install-musl.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,11 @@ esac
1919

2020
musl="musl-${musl_version}"
2121

22-
# Download, configure, build, and install musl:
23-
curl --retry 5 "https://www.musl-libc.org/releases/${musl}.tar.gz" | tar xzf -
22+
# Note that if a new version of musl is needed, it needs to be added to the mirror
23+
# first. See https://github.com/rust-lang/ci-mirrors/blob/main/files/libc.toml.
24+
curl --retry 5 "https://ci-mirrors.rust-lang.org/libc/${musl}.tar.gz" | tar xzf -
2425

26+
# Configure, build, and install musl:
2527
cd "$musl"
2628
case ${1} in
2729
aarch64)

0 commit comments

Comments
 (0)