Run apt-get update before installing
This commit is contained in:
parent
0262b07fa5
commit
b66b8a4424
@ -15,6 +15,11 @@ export HOST=$ARCH-$OS
|
||||
MAIN_TARGETS=https://static.rust-lang.org/dist
|
||||
EXTRA_TARGETS=https://people.mozilla.org/~acrichton/libc-test/2015-09-08
|
||||
|
||||
install() {
|
||||
sudo apt-get update
|
||||
sudo apt-get install $@
|
||||
}
|
||||
|
||||
if [ "$TARGET" = "arm-linux-androideabi" ]; then
|
||||
# Pull a pre-built docker image for testing android, then run tests entirely
|
||||
# within that image.
|
||||
@ -23,15 +28,15 @@ if [ "$TARGET" = "arm-linux-androideabi" ]; then
|
||||
sh ci/run.sh $TARGET
|
||||
elif [ "$TARGET" = "x86_64-unknown-linux-musl" ]; then
|
||||
curl -s $EXTRA_TARGETS/$TARGET.tar.gz | tar xzf - -C $HOME/rust/lib/rustlib
|
||||
sudo apt-get install musl-tools
|
||||
install musl-tools
|
||||
export CC=musl-gcc
|
||||
elif [ "$TARGET" = "arm-unknown-linux-gnueabihf" ]; then
|
||||
curl -s $EXTRA_TARGETS/$TARGET.tar.gz | tar xzf - -C $HOME/rust/lib/rustlib
|
||||
sudo apt-get install gcc-4.7-arm-linux-gnueabihf qemu-user
|
||||
install gcc-4.7-arm-linux-gnueabihf qemu-user
|
||||
export CC=arm-linux-gnueabihf-gcc-4.7
|
||||
elif [ "$TARGET" = "aarch64-unknown-linux-gnu" ]; then
|
||||
curl -s $EXTRA_TARGETS/$TARGET.tar.gz | tar xzf - -C $HOME/rust/lib/rustlib
|
||||
sudo apt-get install gcc-aarch64-linux-gnu qemu-user
|
||||
install gcc-aarch64-linux-gnu qemu-user
|
||||
export CC=aarch64-linux-gnu-gcc
|
||||
elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
|
||||
# Download pre-built and custom MIPS libs and then also instsall the MIPS
|
||||
@ -43,9 +48,8 @@ elif [ "$TARGET" = "mips-unknown-linux-gnu" ]; then
|
||||
sudo tee -a /etc/apt/sources.list
|
||||
echo 'deb http://www.emdebian.org/debian/ squeeze main' | \
|
||||
sudo tee -a /etc/apt/sources.list
|
||||
sudo apt-get update
|
||||
sudo apt-get install emdebian-archive-keyring
|
||||
sudo apt-get install qemu-user gcc-4.4-mips-linux-gnu -y --force-yes
|
||||
install emdebian-archive-keyring
|
||||
install qemu-user gcc-4.4-mips-linux-gnu -y --force-yes
|
||||
export CC=mips-linux-gnu-gcc
|
||||
else
|
||||
# Download the rustlib folder from the relevant portion of main distribution's
|
||||
@ -59,7 +63,7 @@ else
|
||||
export CC=clang
|
||||
|
||||
if [ "$TARGET" = "i686-unknown-linux-gnu" ]; then
|
||||
sudo apt-get install gcc-multilib
|
||||
install gcc-multilib
|
||||
fi
|
||||
fi
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user