]> git.ipfire.org Git - thirdparty/kmod.git/commit
ci: Use a container and expand versions
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Fri, 12 Jul 2024 16:06:07 +0000 (11:06 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 17 Jul 2024 17:37:51 +0000 (12:37 -0500)
commite9f4600bd0ec81bb1830e81bf5803eb1eb7835ea
treec32cd906f2f44d252115426eee9c7d9cfc5249c0
parentda6345d17ac5797bebfb4eccaf8bbc31301c442e
ci: Use a container and expand versions

Use containers to build/test so it's not restricted to the OS versions
supported by Github runners. A few changes are needed to the workflow to
support using containers:

1) No need for sudo, so remove it
2) Explicitly install missing zlib
3) Explicitly pass KDIR= while building kernel modules, since it
   won't match `uname -r`. This assumes the container has just
   one kernel installed and so /usr/lib/modules/*/build can be
   used as the single symlink to the kernel headers. This should
   be common to other distros to be added, too.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/44
.github/actions/setup-ubuntu/action.yml
.github/workflows/main.yml