You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
60 lines
1.5 KiB
60 lines
1.5 KiB
sudo: false
|
|
|
|
dist: xenial
|
|
|
|
language: c
|
|
|
|
cache:
|
|
directories:
|
|
- $HOME/Library/Caches/Homebrew
|
|
|
|
os:
|
|
- linux
|
|
- osx
|
|
|
|
env:
|
|
matrix:
|
|
- ARCH="riscv32" SRC="ucore"
|
|
- ARCH="riscv64" SRC="ucore"
|
|
- ARCH="i386" SRC="ucore"
|
|
# - ARCH="x86_64" SRC="ucore"
|
|
- ARCH="aarch64" SRC="ucore"
|
|
- ARCH="x86_64" SRC="biscuit"
|
|
|
|
install:
|
|
- if [ $ARCH = riscv32 ] || [ $ARCH = riscv64 ]; then
|
|
[ $TRAVIS_OS_NAME = linux ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-linux-ubuntu14";
|
|
[ $TRAVIS_OS_NAME = osx ] && export FILE="riscv64-unknown-elf-gcc-8.1.0-2019.01.0-x86_64-apple-darwin";
|
|
wget https://static.dev.sifive.com/dev-tools/$FILE.tar.gz;
|
|
tar xf $FILE.tar.gz;
|
|
export PATH=$PATH:$PWD/$FILE/bin;
|
|
fi
|
|
- if [ $ARCH = aarch64 ]; then
|
|
if [ $TRAVIS_OS_NAME = linux ]; then
|
|
export FILE="gcc-arm-8.2-2018.11-x86_64-aarch64-elf";
|
|
wget https://developer.arm.com/-/media/Files/downloads/gnu-a/8.2-2018.11/$FILE.tar.xz;
|
|
tar -xvf $FILE.tar.xz;
|
|
export PATH=$PATH:$PWD/$FILE/bin;
|
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
|
brew tap SergioBenitez/osxct;
|
|
brew install aarch64-none-elf;
|
|
fi;
|
|
fi
|
|
- if [ $ARCH = i386 ]; then
|
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
|
brew install i386-elf-gcc;
|
|
fi;
|
|
fi
|
|
- if [ $ARCH = x86_64 ]; then
|
|
if [ $TRAVIS_OS_NAME = osx ]; then
|
|
brew tap altkatz/homebrew-gcc_cross_compilers;
|
|
brew install x64-elf-gcc;
|
|
fi;
|
|
fi
|
|
|
|
script:
|
|
- cd $SRC
|
|
- mkdir build && cd build
|
|
- cmake -DARCH=$ARCH ..
|
|
- make
|