forked from oreboot/oreboot
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (37 loc) · 1.01 KB
/
azure-pipelines.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
trigger:
- master
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight (UTC) build
branches:
include:
- master
always: true
pool:
vmImage: 'ubuntu-latest'
steps:
- script: |
curl https://sh.rustup.rs -sSf | sh
rustup override set nightly
cargo install cargo-make
cargo make setup
sudo apt-get install device-tree-compiler
displayName: 'Install Rust Dependencies'
- script: |
cd src/mainboard/sifive/hifive
cargo make -p release
displayName: 'Build for RISC-V'
- script: |
set -e
git clone https://github.com/qemu/qemu && cd qemu
git apply ../tools/soc/sifive/fu540/qemu.diff
mkdir build-riscv64 && cd build-riscv64
../configure --target-list=riscv64-softmmu
make -j16
sudo ln -s $PWD/riscv64-softmmu/qemu-system-riscv64 /usr/bin/
displayName: 'Install RISC-V QEMU Dependencies'
- script: |
cd src/mainboard/sifive/hifive
timeout 120s cargo make run -p release | tee serial
grep TESTTESTTEST serial
displayName: 'RISC-V QEMU Test'