Skip to content

arighi PR run

arighi PR run #37

Workflow file for this run

name: test-kernel
run-name: ${{ github.actor }} PR run
on: [pull_request, push]
jobs:
test-kernel:
runs-on: ubuntu-22.04
steps:
### OTHER REPOS ####
# Hard turn-off interactive mode
- run: echo 'debconf debconf/frontend select Noninteractive' | sudo debconf-set-selections
# Refresh packages list
- run: sudo apt update
### DOWNLOAD AND INSTALL DEPENDENCIES ###
# Download dependencies packaged by Ubuntu
- run: sudo apt -y install gcc make git coreutils cmake elfutils libelf-dev libunwind-dev libzstd-dev linux-headers-generic linux-tools-common linux-tools-generic ninja-build python3-pip python3-requests qemu-kvm udev iproute2 busybox-static libvirt-clients kbd kmod file rsync zstd pahole flex bison cpio libcap-dev libelf-dev python3-dev cargo rustc
# Checkout repository
- uses: actions/checkout@v4
# Install virtme-ng
- run: pip install virtme-ng
### END DEPENDENCIES ###
# Build a minimal kernel using virtme-ng
- run: vng -v --build --config .github/workflows/kernel.config
# Setup KVM support
- run: |
echo 'KERNEL=="kvm", GROUP="kvm", MODE="0666", OPTIONS+="static_node=kvm"' | sudo tee /etc/udev/rules.d/99-kvm4all.rules
sudo udevadm control --reload-rules
sudo udevadm trigger --name-match=kvm
# Boot test the kernel
- run: .github/workflows/run-kernel