File tree 3 files changed +7
-5
lines changed
mipsel-unknown-linux-musl
3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN mkdir /toolchain
8
8
9
9
# Note that this originally came from:
10
10
# https://downloads.openwrt.org/snapshots/trunk/ar71xx/generic/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11
- RUN curl --retry 5 -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2 /libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11
+ RUN curl --retry 5 -L https://rust-lang-ci-mirrors. s3-us-west-1.amazonaws.com/libc/OpenWrt-SDK-ar71xx-generic_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
12
12
tar xjf - -C /toolchain --strip-components=1
13
13
14
14
ENV PATH=$PATH:/rust/bin:/toolchain/staging_dir/toolchain-mips_34kc_gcc-5.3.0_musl-1.1.15/bin \
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ RUN mkdir /toolchain
8
8
9
9
# Note that this originally came from:
10
10
# https://downloads.openwrt.org/snapshots/trunk/malta/generic/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2
11
- RUN curl --retry 5 -L https://s3-us-west-1.amazonaws.com/rust-lang-ci2 /libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
11
+ RUN curl --retry 5 -L https://rust-lang-ci-mirrors. s3-us-west-1.amazonaws.com/libc/OpenWrt-Toolchain-malta-le_gcc-5.3.0_musl-1.1.15.Linux-x86_64.tar.bz2 | \
12
12
tar xjf - -C /toolchain --strip-components=2
13
13
14
14
ENV PATH=$PATH:/rust/bin:/toolchain/bin \
Original file line number Diff line number Diff line change 5
5
6
6
set -ex
7
7
8
+ MIRRORS_URL=" https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/libc"
9
+
8
10
TARGET=" ${1} "
9
11
10
12
# If we're going to run tests inside of a qemu image, then we don't need any of
@@ -21,21 +23,21 @@ if [ "$QEMU" != "" ]; then
21
23
# image is .gz : download and uncompress it
22
24
qemufile=" $( echo " ${QEMU% .gz} " | sed ' s/\//__/g' ) "
23
25
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
24
- curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc /${QEMU} " | \
26
+ curl --retry 5 " ${MIRRORS_URL} /${QEMU} " | \
25
27
gunzip -d > " ${tmpdir} /${qemufile} "
26
28
fi
27
29
elif [ -z " ${QEMU#* .xz} " ]; then
28
30
# image is .xz : download and uncompress it
29
31
qemufile=" $( echo " ${QEMU% .xz} " | sed ' s/\//__/g' ) "
30
32
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
31
- curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc /${QEMU} " | \
33
+ curl --retry 5 " ${MIRRORS_URL} /${QEMU} " | \
32
34
unxz > " ${tmpdir} /${qemufile} "
33
35
fi
34
36
else
35
37
# plain qcow2 image: just download it
36
38
qemufile=" $( echo " ${QEMU} " | sed ' s/\//__/g' ) "
37
39
if [ ! -f " ${tmpdir} /${qemufile} " ]; then
38
- curl --retry 5 " https://s3-us-west-1.amazonaws.com/rust-lang-ci2/libc/ ${QEMU} " \
40
+ curl --retry 5 " ${MIRRORS_URL} / ${QEMU} " | \
39
41
> " ${tmpdir} /${qemufile} "
40
42
fi
41
43
fi
You can’t perform that action at this time.
0 commit comments