forked from torvalds/linux
-
Notifications
You must be signed in to change notification settings - Fork 2
27 lines (23 loc) · 1.06 KB
/
c-cpp.yml
File metadata and controls
27 lines (23 loc) · 1.06 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
name: C/C++ CI
on:
push:
branches: [ "x86/vac/hw-operations-in-vac-v3" ]
pull_request:
branches: [ "x86/vac/hw-operations-in-vac-v3" ]
jobs:
build:
runs-on: self-hosted
steps:
- uses: actions/checkout@v3
- name: make mrproper (minimal)
run: make mrproper
- name: config (minimal)
run: wget https://gist.githubusercontent.com/vsrinivas/125460123140af2c2c1f0e0fd4cab874/raw/e0868389b5660ea869d7fad837014f0bb2d20cb3/gistfile1.txt -O .config
- name: make (minimal)
run: make CC="ccache cc" -j`nproc` && make CC="ccache cc" M=arch/x86/kvm modules
- name: fetch testdisk (minimal)
run: wget https://github.com/vsrinivas/xtest/raw/master/testdisk.img.gz -O testdisk.img.gz
- name: unpack testdisk (minimal)
run: gunzip testdisk.img.gz
- name: test boot (minimal)
run: qemu-system-x86_64 --enable-kvm -kernel vmlinux -append "console=ttyS0 root=/dev/nvme0n1 init=/sbin/sh" -smp 1 -m 1G -display none -serial stdio -drive file=testdisk.img,if=none,id=nvme -device nvme,drive=nvme,serial=disk -no-reboot