]> git.ipfire.org Git - thirdparty/kmod.git/commit
ci: Generalize OS setup in one action
authorLucas De Marchi <lucas.de.marchi@gmail.com>
Wed, 12 Mar 2025 13:55:03 +0000 (08:55 -0500)
committerLucas De Marchi <lucas.de.marchi@gmail.com>
Tue, 25 Mar 2025 19:01:26 +0000 (14:01 -0500)
commit5c188bd1982e22c7e665fdf705162350ff4f919d
tree457a5f48967dc8a9ac10ce01a34de235f32a0b7a
parentecf507a704ce5a2f46e45bcb4f5070beba05fc32
ci: Generalize OS setup in one action

Use just one action for OS setup and make it call the right script. This
makes it easier to maintain as when devs are working with containers,
they can just call the script, and it also avoids repeated conditional
steps in the workflows.

If a distro is not supported, the action will simply fail and support
may be added later.

With the move to .sh files, also run shellcheck in them: surprisingly
just one quote missing.

Signed-off-by: Lucas De Marchi <lucas.de.marchi@gmail.com>
Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com>
Link: https://github.com/kmod-project/kmod/pull/321
15 files changed:
.github/actions/setup-alpine/action.yml [deleted file]
.github/actions/setup-archlinux/action.yml [deleted file]
.github/actions/setup-debian/action.yml [deleted file]
.github/actions/setup-fedora/action.yml [deleted file]
.github/actions/setup-os/action.yml [new file with mode: 0644]
.github/actions/setup-os/setup-alpine.sh [new file with mode: 0755]
.github/actions/setup-os/setup-arch.sh [new file with mode: 0755]
.github/actions/setup-os/setup-debian.sh [new file with mode: 0755]
.github/actions/setup-os/setup-fedora.sh [new file with mode: 0755]
.github/actions/setup-os/setup-ubuntu.sh [new file with mode: 0755]
.github/actions/setup-ubuntu/action.yml [deleted file]
.github/workflows/codeql.yml
.github/workflows/coverage.yml
.github/workflows/docs.yml
.github/workflows/main.yml