Update main.yml #20
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
run: make mrproper | |
- name: config | |
run: wget https://raw.githubusercontent.com/vsrinivas/kvm-misc/master/.config -O .config | |
- name: make | |
run: make CC="ccache cc" -j`nproc` && make CC="ccache cc" M=arch/x86/kvm modules | |
- name: fetch testdisk | |
run: wget https://github.com/vsrinivas/kvm-misc/raw/master/testdisk.img.gz -O testdisk.img.gz | |
- name: unpack testdisk | |
run: gunzip testdisk.img.gz | |
- name: pack xvac.ko, kvm.ko | |
run: dd if=/dev/zero of=vac.img bs=1M count=12 && mkfs.vfat vac.img && mcopy -i vac.img arch/x86/kvm/xvac.ko ::/ && mcopy -i vac.img arch/x86/kvm/kvm-a.ko ::/ | |
- name: fetch vm-boot-test.exp | |
run: wget https://raw.githubusercontent.com/vsrinivas/kvm-misc/master/vm-boot-test.exp -O vm-boot-test.exp | |
- name: vm-boot-test.exp | |
run: chmod +x ./vm-boot-test.exp && ./vm-boot-test.exp |