2018-07-06 19:23:02 +04:00
|
|
|
sudo: required
|
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-09-19 16:43:49 +04:00
|
|
|
rust: nightly-2018-09-18
|
2018-07-16 10:44:21 +04:00
|
|
|
|
|
|
|
cache:
|
|
|
|
cargo: true
|
|
|
|
|
|
|
|
addons:
|
|
|
|
apt:
|
|
|
|
packages:
|
|
|
|
- qemu
|
|
|
|
|
|
|
|
env:
|
|
|
|
matrix:
|
|
|
|
- ARCH="riscv32"
|
|
|
|
- ARCH="x86_64"
|
2017-04-19 14:53:28 +04:00
|
|
|
|
2018-08-04 20:37:36 +04:00
|
|
|
install:
|
|
|
|
- if [ $ARCH = riscv32 ]; then
|
|
|
|
export FILE="riscv64-unknown-elf-gcc-2018.07.0-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;
|
2018-07-17 08:40:34 +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-08-04 20:37:36 +04:00
|
|
|
- cd kernel && make build arch=$ARCH
|