diff --git a/.github/workflows/run_module.yml b/.github/workflows/run_module.yml index bba5d0d..3b283e5 100644 --- a/.github/workflows/run_module.yml +++ b/.github/workflows/run_module.yml @@ -15,7 +15,7 @@ jobs: # Install dependencies - run: sudo apt update - - run: sudo apt -y install bison busybox-static cargo cmake coreutils cpio elfutils file flex gcc gcc-multilib git iproute2 jq kbd kmod libcap-dev libelf-dev libunwind-dev libvirt-clients libzstd-dev linux-headers-generic linux-tools-common linux-tools-generic make ninja-build pahole pkg-config python3-dev python3-pip python3-requests qemu-kvm rsync rustc stress-ng udev zstd + - run: sudo apt -y install bison busybox-static cmake coreutils cpio elfutils file flex gcc gcc-multilib git iproute2 jq kbd kmod libcap-dev libelf-dev libunwind-dev libvirt-clients libzstd-dev linux-headers-generic linux-tools-common linux-tools-generic make pahole pkg-config python3-dev python3-pip python3-requests qemu-kvm rsync stress-ng udev zstd curl ### END DEPENDENCIES ### # Install virtme-ng @@ -36,8 +36,9 @@ jobs: # Generate kernel headers - run: cd linux && make headers - # Run VM & test kernel module - - run: vng -v -- ls .. + # Print CPU model before running the tests (this can be useful for + # debugging purposes) + - run: grep 'model name' /proc/cpuinfo | head -1 # Setup KVM support - name: "KVM support" @@ -46,6 +47,9 @@ jobs: sudo udevadm control --reload-rules sudo udevadm trigger --name-match=kvm + # Run VM & test kernel module + - run: cd linux && vng -v -- 'cd .. && ls && make KSRC=linux && insmod mod-webserver.ko && echo 1 > /sys/kernel/webserver/net/data/status && curl 127.0.0.1:2000' + # Re-run with KVM support - name: "Check KVM support" run: |