Skip to content

CI/CD: Move test cases, .config into repo #38

CI/CD: Move test cases, .config into repo

CI/CD: Move test cases, .config into repo #38

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:
strategy:
matrix:
virt: [vmx, svm]
runs-on:
- self-hosted
- ${{ matrix.virt }}
steps:
- uses: actions/checkout@v3
- name: make mrproper
run: make mrproper
- name: config
run: cp .github/workflows/.config .config
- name: make
run: make CC="ccache cc" -j`nproc` && make CC="ccache cc" M=arch/x86/kvm modules && make CC="ccache cc" M=arch/x86/kvm modules X=b
- name: fetch testdisk
run: wget https://github.com/vsrinivas/kvm-misc/raw/master/testdisk.img.gz -O testdisk.img.gz && gunzip testdisk.img.gz
- name: fetch qemu-static and kvm-unit-tests disk
run: wget https://github.com/vsrinivas/kvm-misc/raw/master/qemu-static.img.gz -O qemu-static.img.gz && gunzip qemu-static.img.gz
- name: pack xvac.ko, kvm.ko
run: mcopy -i qemu-static.img arch/x86/kvm/xvac.ko ::/ && mcopy -i qemu-static.img virt/lib/irqbypass.ko ::/ && mcopy -i qemu-static.img arch/x86/kvm/kvm-a.ko ::/ && mcopy -i qemu-static.img arch/x86/kvm/kvm-b.ko ::/
- name: vm-boot-test.exp
run: .github/workflows/vm-boot-test.exp
- name: vm-boot-test-vac.exp
run: .github/workflows/vm-boot-test-vac.exp
- name: vm-vac-reload.exp
run: .github/workflows/vm-vac-reload.exp
- name: vm-vac-cpu-offline-online.exp
run: .github/workflows/vm-vac-cpu-offline-online.exp
build-clang:
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 clang" -j`nproc` && make CC="ccache clang" M=arch/x86/kvm modules && make CC="ccache clang" M=arch/x86/kvm modules X=b