1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 16:36:18 +04:00
rCore/.travis.yml
2018-11-01 00:16:32 +08:00

35 lines
669 B
YAML

sudo: required
language: rust
rust: nightly-2018-09-18
cache:
cargo: true
addons:
apt:
packages:
- qemu
env:
matrix:
- ARCH="riscv32"
- ARCH="x86_64"
install:
- if [ $ARCH = riscv32 ]; then
export FILE="riscv64-unknown-elf-gcc-20180928-x86_64-linux-ubuntu14";
wget https://static.dev.sifive.com/dev-tools/$FILE.tar.gz;
tar xf $FILE.tar.gz;
export PATH=$PATH:$PWD/$FILE/bin;
fi
before_script:
- rustup component add rust-src
- (test -x $HOME/.cargo/bin/cargo-xbuild || cargo install cargo-xbuild)
- (test -x $HOME/.cargo/bin/bootimage || cargo install bootimage)
script:
- cd kernel && make build arch=$ARCH