forked from oreboot/oreboot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
azure-pipelines.yml
108 lines (105 loc) · 3.11 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
trigger:
- master
schedules:
- cron: "0 0 * * *"
displayName: Daily midnight (UTC) build
branches:
include:
- master
always: true
pool:
vmImage: 'ubuntu-latest'
jobs:
- job: CheckQuality
steps:
- checkout: self
fetchDepth: 1 # Download only latest commit, not all history
- script: |
git submodule update --init
displayName: 'Checkout submodules'
- script: |
make ciprepare
displayName: 'Install Rust Dependencies'
- script: |
make --keep-going format check=true
displayName: 'Check formatting'
- script: |
make --keep-going test
displayName: 'Run rust tests'
- script: |
make --keep-going clippy
displayName: 'Run clippy linter'
- script: |
make --keep-going mainboards
displayName: 'Build all mainboards'
- script: |
./scripts/generate-size-report.sh
displayName: 'Generate report of binary sizes'
- job: BuildX86QEMU
displayName: 'Build QEMU q35 board for x86'
steps:
- checkout: self
fetchDepth: 1 # Download only latest commit, not all history
- script: |
git submodule update --init
displayName: 'Checkout submodules'
- script: |
make ciprepare
cd src/mainboard/emulation/qemu-q35
make
- job: TestSiFiveQEMU
displayName: 'Test RISC-V SiFive board in QEMU'
steps:
- checkout: self
fetchDepth: 1 # Download only latest commit, not all history
- script: |
make ciprepare
displayName: 'Install Rust Dependencies'
- script: |
pushd src/mainboard/sifive/hifive
PAYLOAD_A=../../../../payloads/src/external/simple/testtesttest make
popd
displayName: 'Build firmware'
- script: |
git clone --single-branch --branch v5.1.0 https://github.com/qemu/qemu && pushd qemu
mkdir build-riscv64 && cd build-riscv64
../configure --target-list=riscv64-softmmu
make -j16
sudo ln -s $PWD/riscv64-softmmu/qemu-system-riscv64 /usr/bin/
sudo ln -s $PWD/qemu-img /usr/bin/
popd
displayName: 'Build QEMU'
- script: |
pushd src/mainboard/sifive/hifive
PAYLOAD_A=../../../../payloads/src/external/simple/testtesttest timeout 120s make run | tee serial
grep TESTTESTTEST serial
popd
displayName: 'Run test'
- job: TestRISCVVirtBoardQEMU
displayName: 'Test RISC-V QEMU Virt board in QEMU'
steps:
- checkout: self
fetchDepth: 1 # Download only latest commit, not all history
- script: |
make ciprepare
displayName: 'Install Rust Dependencies'
- script: |
pushd src/mainboard/emulation/qemu-riscv
make
popd
displayName: 'Build oreboot image'
- script: |
git clone --single-branch --branch v5.1.0 https://github.com/qemu/qemu && pushd qemu
mkdir build-riscv64 && pushd build-riscv64
../configure --target-list=riscv64-softmmu
make -j16
sudo ln -s $PWD/riscv64-softmmu/qemu-system-riscv64 /usr/bin/
sudo ln -s $PWD/qemu-img /usr/bin/
popd
displayName: 'Build QEMU'
- script: |
pushd src/mainboard/emulation/qemu-riscv
timeout 30s make run | tee serial
grep "Running payload" serial
popd
displayName: 'Run test'