Skip to content

Update main.yml

Update main.yml #12

Workflow file for this run

name: C/C++ CI (x86/vac/hw-operations-in-vac-v3)
on:
push:
branches: [ "x86/vac/hw-operations-in-vac-v3" ]
workflow_dispatch:
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/539994b4b8905300f62f78324a13e3e4bed09cfe/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