[plugin] add option to compile with the Static Linux SDK instead of docker #332
Labels
kind/enhancement
Improvements to existing feature.
🆕 semver/minor
Adds new public API.
status/needs-design
Needs further discussion and a concrete proposal.
Expected behavior
Now that the Static Linux SDK has been released, it open the doors to cross-platform compilation from Mac that doesn't require Docker or depend on Amazon Linux.
The binaries created with the Static Linux SDK work "as is" on AWS Lambda.
I propose to add an option to the Archiver plugin to compile the binary with the Static Linux SDK instead of Docker.
When this option is enabled (it might become the default at some stage):
swift build -c release --swift-sdk aarch64-swift-linux-musl
(or x64_86)bootstrap
sym link to the executable and package the sym link and the executable in a ZIP fileHowever, some pre-requisites are necessary before to release this enhancement
Actual behavior
The archiver plugin requires Docker and an Amazon Linux 2 image with the Swift toolchain installed
Steps to reproduce
n/a
If possible, minimal yet complete reproducer code (or URL to code)
Here is the script I use to test this on macOS Sonoma
What version of this project (
swift-aws-lambda-runtime
) are you using?1.0.0-alpha1
Swift version
Amazon Linux 2 docker image version
No response
The text was updated successfully, but these errors were encountered: