-
Notifications
You must be signed in to change notification settings - Fork 13
ci: add multi-platform and multi-compiler testing #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
imichaelmoore
merged 13 commits into
troydhanson:master
from
imichaelmoore:multi-platform-testing
Nov 29, 2025
Merged
ci: add multi-platform and multi-compiler testing #15
imichaelmoore
merged 13 commits into
troydhanson:master
from
imichaelmoore:multi-platform-testing
Nov 29, 2025
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Docker script (scripts/test-in-docker.sh): - Add distro parameter: alpine, debian, ubuntu, fedora, rocky - Add compiler parameter: gcc, clang - Add --help and --list options - Generate appropriate Dockerfile per distro/package manager GitHub Actions CI (.github/workflows/ci.yml): - Convert test job to matrix strategy with 10 combinations - Test across 5 distros: Alpine (musl), Debian, Ubuntu, Fedora, Rocky (glibc) - Test both GCC and Clang compilers on all distros - Add ARM64 testing via QEMU emulation - Add timeout-minutes to prevent hung jobs - Use fail-fast: false to run all jobs even if one fails - Keep coverage job separate (unchanged)
Fix build failures by adding missing sanitizer libraries: - Alpine gcc: gcc-sanitizer - Debian/Ubuntu clang: libclang-rt-dev - Fedora gcc: libasan libubsan - Fedora clang: compiler-rt - Rocky gcc: libasan libubsan
- Alpine gcc: Use Debug build (no sanitizer support on musl) - Add procps/procps-ng for pgrep command used by e2e tests - Use matrix.build_type to allow per-job build type configuration
- Add procps/procps-ng for pgrep (needed by e2e tests) - Add sanitizer packages: libclang-rt-dev, libasan, libubsan, compiler-rt - Auto-switch Alpine + gcc + Sanitize to Debug (musl limitation) - Update help notes
CI additions: - Amazon Linux 2023: gcc + Sanitize (AWS environment) - Arch Linux: gcc + clang + Sanitize (rolling release, latest compilers) - Gentoo: gcc + Debug (source-based, slower build) Docker script additions: - Support for amazonlinux, arch, gentoo distros - Warning for Gentoo + clang (requires manual setup) - Updated help text and platform list
- Runs every Sunday at 00:00 UTC - Creates GitHub issue on failure (only for scheduled runs) - Uses unique label per distro/compiler to prevent duplicate issues - Only creates issue if no open issue with same label exists
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Expand CI test matrix to cover multiple Linux distributions, compilers, and architectures. Add local Docker test script for development on macOS/Windows. Add weekly scheduled runs with automatic issue creation on failures.
CI Matrix (18 jobs)
Plus: Coverage job (Ubuntu)
Scheduled Runs
ci:<distro>-<compiler>) to prevent duplicate issuesDocker Script
Supports: alpine, debian, ubuntu, fedora, rocky, oraclelinux, amazonlinux, arch, gentoo