2018-12-01 14:21:15 +04:00
|
|
|
sudo: false
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-07-06 19:23:02 +04:00
|
|
|
language: rust
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-11-10 17:53:07 +04:00
|
|
|
rust: nightly
|
2018-07-16 10:44:21 +04:00
|
|
|
|
2018-12-01 14:21:15 +04:00
|
|
|
os:
|
|
|
|
- linux
|
|
|
|
- osx
|
|
|
|
|
2018-07-16 10:44:21 +04:00
|
|
|
cache:
|
|
|
|
cargo: true
|
2018-12-01 14:21:15 +04:00
|
|
|
directories:
|
|
|
|
- $HOME/Library/Caches/Homebrew
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- qemu
|
2018-12-01 14:21:15 +04:00
|
|
|
homebrew:
|
|
|
|
packages:
|
|
|
|
- qemu
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- ARCH="riscv32"
|
2018-12-01 13:47:02 +04:00
|
|
|
- ARCH="riscv32" OPTS="m_mode=1"
|
2018-07-16 10:44:21 +04:00
|
|
|
- ARCH="x86_64"
|
2018-11-19 21:33:21 +04:00
|
|
|
- ARCH="aarch64"
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-08-04 20:37:36 +04:00
|
|
|
install:
|
|
|
|
- if [ $ARCH = riscv32 ]; then
|
2018-12-01 14:21:15 +04:00
|
|
|
[ $TRAVIS_OS_NAME = linux ] && export FILE="riscv64-unknown-elf-gcc-20181127-x86_64-linux-ubuntu14";
|
|
|
|
[ $TRAVIS_OS_NAME = osx ] && export FILE="riscv64-unknown-elf-gcc-20181127-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;
|
2018-07-17 08:40:34 +04:00
|
|
|
fi
|
2018-11-19 21:33:21 +04:00
|
|
|
- if [ $ARCH = aarch64 ]; then
|
2018-12-01 14:21:15 +04:00
|
|
|
if [ $TRAVIS_OS_NAME = linux ]; then
|
|
|
|
wget https://web.stanford.edu/class/cs140e/files/aarch64-none-elf-linux-x64.tar.gz;
|
|
|
|
tar -xzvf aarch64-none-elf-linux-x64.tar.gz;
|
|
|
|
export PATH=$PATH:$PWD/aarch64-none-elf/bin;
|
|
|
|
elif [ $TRAVIS_OS_NAME = osx ]; then
|
|
|
|
brew tap SergioBenitez/osxct;
|
|
|
|
brew install aarch64-none-elf;
|
|
|
|
fi;
|
2018-11-19 21:33:21 +04:00
|
|
|
fi
|
|
|
|
|
2018-04-09 17:20:47 +04:00
|
|
|
|
2018-08-04 20:37:36 +04:00
|
|
|
before_script:
|
|
|
|
- rustup component add rust-src
|
|
|
|
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
|
2018-09-19 16:43:49 +04:00
|
|
|
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
|
2018-08-04 20:37:36 +04:00
|
|
|
|
2017-04-19 14:53:28 +04:00
|
|
|
script:
|
2018-12-01 13:47:02 +04:00
|
|
|
- cd kernel && make build arch=$ARCH $OPTS && cd ..
|
2018-11-20 07:24:25 +04:00
|
|
|
- cd user && make arch=$ARCH
|