Add ARM cross-compilation to GitHub Actions CI#363
Merged
Conversation
Add ARM32 (ARMv7 hard-float) and ARM64 (AArch64) cross-compilation testing to the CI workflow. This validates that libhttpserver can be built for ARM targets using cross-compilation toolchains. Changes: - Add arm32 and arm64 matrix entries with appropriate toolchains - Add step to install ARM cross-compilation toolchains - Add separate libmicrohttpd cross-compilation steps with caching - Update configure step to use --host flag for cross-compilation - Skip tests and cppcheck for cross-compilation builds (binaries cannot execute on x86_64 runners) The existing COND_CROSS_COMPILE logic in configure.ac automatically handles test exclusion during cross-compilation. Closes #131
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #363 +/- ##
=======================================
Coverage 70.54% 70.54%
=======================================
Files 28 28
Lines 1436 1436
Branches 570 570
=======================================
Hits 1013 1013
Misses 35 35
Partials 388 388 Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
The ARM cross-compiler doesn't search /usr/local by default. Install libmicrohttpd to a workspace-local sysroot and pass CPPFLAGS/LDFLAGS to libhttpserver's configure to find the headers and libraries.
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
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
Changes
gcc-arm-linux-gnueabihf,gcc-aarch64-linux-gnu)--hostflag for cross-compilationTest plan
Closes #131