-
Notifications
You must be signed in to change notification settings - Fork 21
38 lines (37 loc) · 1.6 KB
/
Copy pathqemu.yml
File metadata and controls
38 lines (37 loc) · 1.6 KB
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
name: Run in QEMU
on: [push, pull_request]
jobs:
miix:
name: "Run in QEMU (Lenovo Miix 630)"
runs-on: ubuntu-latest
steps:
- name: Install additional build dependencies
run: sudo apt-get update && sudo apt-get install -yqq llvm lld device-tree-compiler qemu-system-arm qemu-efi-aarch64
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build dtbloader
run: git clean -dxf && make -j$(nproc) DEBUG=1 CFLAGS_SRC="-Wall -Werror -fsanitize=undefined -fsanitize-trap=all"
- name: Prepare ESP
run: dtc .ci/dummy.dts -o build-aarch64/msm8998-lenovo-miix-630.dtb
- name: Run QEMU
run: ./scripts/run_qemu.sh miix | tee log.txt
- name: Check the log
run: "grep -q 'Detected device: LENOVO Miix 630' log.txt && ! grep -q 'Synchronous Exception' log.txt"
nosmbios:
name: "Run in QEMU (firmware default)"
runs-on: ubuntu-latest
steps:
- name: Install additional build dependencies
run: sudo apt-get update && sudo apt-get install -yqq llvm lld device-tree-compiler qemu-system-arm qemu-efi-aarch64
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Build dtbloader
run: git clean -dxf && make -j$(nproc) DEBUG=1 CFLAGS_SRC="-Wall -Werror -fsanitize=undefined -fsanitize-trap=all"
- name: Prepare ESP
run: dtc .ci/dummy.dts -o build-aarch64/msm8998-lenovo-miix-630.dtb
- name: Run QEMU
run: ./scripts/run_qemu.sh nosmbios | tee log.txt
- name: Check the log
run: "! grep -q 'Synchronous Exception' log.txt"