Skip to content

Commit

Permalink
travis: fix riscv32 toolchain url on musl.cc
Browse files Browse the repository at this point in the history
  • Loading branch information
wangrunji0408 committed Sep 23, 2019
1 parent 380ab63 commit 10ac61f
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,11 @@ install:
[ $ARCH = mipsel ] && export FILE="mipsel-linux-musln32-cross";
[ $ARCH = aarch64 ] && export FILE="aarch64-linux-musl-cross";
[ $ARCH = x86_64 ] && export FILE="x86_64-linux-musl-cross";
if [ $TRAVIS_OS_NAME = linux ]; then
wget https://musl.cc/$FILE.tgz;
elif [ $TRAVIS_OS_NAME = osx ]; then
wget https://mac.musl.cc/$FILE.tgz;
fi;
[ $TRAVIS_OS_NAME = linux ] && export URL="https://musl.cc/$FILE.tgz";
[ $TRAVIS_OS_NAME = osx ] && export URL="https://mac.musl.cc/$FILE.tgz";
[ $TRAVIS_OS_NAME = linux ] && [ $ARCH = riscv32 ] && export URL="https://more.musl.cc/8/x86_64-linux-musl/$FILE.tgz";
[ $TRAVIS_OS_NAME = osx ] && [ $ARCH = riscv32 ] && export URL="https://lisa.musl.cc/9.1.0/$FILE.tgz";
wget $URL;
tar -xf $FILE.tgz;
export PATH=$PATH:$PWD/$FILE/bin;
fi
Expand Down

0 comments on commit 10ac61f

Please sign in to comment.