awslambdaric: add build-awslambdaric.yml for riscv64 wheels - #1033
Merged
Conversation
Statically links a vendored curl and AWS's own aws-lambda-cpp into the runtime_client C++ extension; the sources for both ship in the git tag already, so no network fetch is needed at build time. One patch works around aws-lambda-cpp's vendored backward-cpp hard-erroring under -Werror on riscv64, an architecture it doesn't recognize.
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.
awslambdaric4.0.2Compiles the
runtime_clientC++ extension, statically linking a vendored curl and AWS's ownaws-lambda-cpp(both built from source tarballs shipped in the git tag). Upstream publishes no riscv64 wheel.Build-from-checkout: the tag's
deps/*.tar.gzandscripts/preinstall.share upstream's own recipe, unmodified except for the one patch below.Differs from upstream
Testing
test_runtime_client_headers.py, which drives the compiled extension against a stub RAPID server.License: OK. Both curl and aws-lambda-cpp are statically linked with no external runtime deps (
--without-ssl --without-zlib), so nothing extra is vendored into the wheel; it ships the same LICENSE/NOTICE as the official wheel.Patches
0001-Don-t-fail-the-build-on-backward-cpp-s-unknown-archi.patch- To upstream (not submitted). aws-lambda-cpp's vendored backward-cpp has no riscv64 case in its crash-address dispatch, so its catch-all#warningand an unused variable become hard errors under-Werror. riscv64-only.Built on cp312; 135 passed, 17 subtests passed.