likewhatevs/virtme-ng Action

Run CI workloads inside a virtme-ng VM with a specific kernel

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit Mar 22, 2026
License
GPL 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: likewhatevs/vng-action@5a811fcf1325b268b413d023a70c69f7d35f20c6 # v0.4.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
nameName for the kernel build cache (e.g., my-project-kernel)yes
kernel-urlGit repository URL for the kernel sourceyes
kernel-tagGit tag or branch to checkout (e.g., v6.12, master)yes
versionCache version string, bump to invalidate the cache (e.g., v1, v2)nov3
kconfigPath to a kconfig fragment file (relative to the repo root)no""
cpusNumber of CPUs for the VM (default: all host CPUs)no""
memoryMemory for the VM, e.g. 4G, 512M (default: 90% of host RAM)no""
networkNetwork mode for the VM, e.g. user (default: none)no""
verboseEnable verbose vng boot outputnotrue
ccC compiler for the kernel build (e.g., clang)no""
llvmUse the full LLVM toolchain (CC=clang, LD=ld.lld, AR=llvm-ar, etc.)no""
kernel-compile-cacheUse ccache to speed up kernel rebuilds on cache miss (default: true)notrue
vmlinux-hGenerate vmlinux.h from kernel BTF and cache it alongside the kernel (default: true)notrue
deps-timeoutTimeout in seconds for dependency installation (per attempt)no90
deps-retriesNumber of retry attempts for dependency installationno3
appendAdditional kernel boot parameters passed to vng via --appendnomitigations=off
qemu-optsAdditional QEMU options passed to vng via --qemu-optsno-cpu host
run-timeoutTimeout in seconds for the VM workload (0 = no timeout)no0
packagesExtra apt packages to install and cache alongside vng dependencies (space-separated)no""
install-recommendsInstall recommended packages alongside dependencies (default: false)nofalse
apt-cacheCache apt packages between runs (default: false)nofalse
workspace-rwMount $GITHUB_WORKSPACE read-write in the VM (default: true)notrue
extra-rwdirsAdditional host directories to mount read-write in the VM (space-separated, tilde-expanded)no~/.cargo
runCommands to execute inside the VMyes
namedescription
kernel-shaShort commit SHA (12 chars) of the resolved kernel commit