Skip to content

Commit 4315bd6

Browse files
committed
fix ci build for static sdk
1 parent 70f9f92 commit 4315bd6

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/pull_request.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,13 @@ jobs:
2929
swift_flags: "--explicit-target-dependency-import-check error"
3030
swift_nightly_flags: "--explicit-target-dependency-import-check error"
3131
enable_linux_static_sdk_build: true
32+
# The static Linux SDK statically links against musl. AWSLambdaPluginHelper pulls in
33+
# SotoCore, which transitively brings two different vendored BoringSSL forks
34+
# (swift-crypto's CCryptoBoringSSL and swift-nio-ssl's CNIOBoringSSL). Static linking
35+
# surfaces their duplicate libc++abi symbols (set_new_handler, __cxa_*, ...) and the link
36+
# fails. The helper is a host-side build tool that never runs inside Lambda, so it does not
37+
# need the static SDK. Restrict the static build to the deployable runtime product.
38+
linux_static_sdk_build_command: "swift build --product AWSLambdaRuntime"
3239

3340
integration-tests:
3441
name: Integration Tests

0 commit comments

Comments
 (0)