libx52/.github/scripts
nirenjan 8914184613 build: Migrate CI to use distro containers
Previously, the build workflow was restricted to running only on Ubuntu
22.04, Ubuntu 24.04 and macOS, which are the only available native
runners on Github Actions. However, the Ubuntu runner does allow us to
run the build inside a container. Therefore, this commit adds the
ability to pull a prebuilt container with all the necessary dependencies
and build libx52 inside of that container. This commit also adds support
scripts to build the containers and run the CI build against those
prebuilt containers locally for testing, without having to rely
exclusively on Github Actions.

This change also adds support for testing libx52 against Alpine Linux,
in order to verify the portability, given that Alpine uses musl instead
of glibc. The limitation is that we need to mount the `/dev/bus/usb`
device tree inside the container, otherwise libusb inside the Alpine
image fails with LIBUSB_ERROR_OTHER. This is not a concern on the other
distributions, but due to limitations in the Github actions environment,
there is no `/dev/bus/usb` tree to export. For this reason, Alpine is
not a part of the CI build, but is available for testing locally.

Also, because a default bare container would need several minutes of
package installation just to get to a point where we could run
build-and-test.sh, this includes a prebuild workflow which generates the
container images and pushes them to ghcr.io, and the build workflow
pulls from there. There is also logic to ensure that we only keep the
latest image, since there is no value in retaining older images.
2026-03-26 12:23:38 -07:00
..
build-and-test.sh build: Migrate CI to use distro containers 2026-03-26 12:23:38 -07:00
build-doxygen.sh build: Migrate to meson build 2026-03-12 10:20:01 -07:00
generate_build_matrix.py build: Migrate CI to use distro containers 2026-03-26 12:23:38 -07:00
generate_changelog.py feat: Add Changelog generation script for releases 2026-03-12 12:06:24 -07:00
get-changed-dockerfiles.sh build: Migrate CI to use distro containers 2026-03-26 12:23:38 -07:00
install-dependencies-macos.sh build: Migrate to meson build 2026-03-12 10:20:01 -07:00
install-dependencies-ubuntu.sh build: Migrate to meson build 2026-03-12 10:20:01 -07:00
install-kernel-dependencies.sh Create workflow to build kernel module 2020-08-13 03:17:35 -07:00