mirror of
https://github.com/apple/swift-nio
synced 2026-11-24 04:37:54 +00:00
A re-usable static SDK compilation workflow ### Motivation: We would like to offer the ability to opt-in to CI coverage for compilation against the Linux static SDK. ### Modifications: Introduce a workflow which will install a Swift snapshot and Linux SDK and test the repository builds against it. The script which sets up the VM will install snapshots and SDKs for either branch or released-version snapshots. They can be specified as: - a specific version string - the 'latest' version, the script attempts to find the most recent version enumerated on swift.org with both SDK and toolchain available - the most recent snapshot for the specified branch name enumerated on swift.org with both SDK and toolchain available At the moment the script should work on ubuntu and amazonlinux OSes, this can be expanded in the future. The current matrix covers testing building on Ubuntu Jammy for the main branch and latest released Swift version (6.0.3) and enables it on our periodic CI runs. See https://github.com/apple/swift-nio/actions/runs/13722773053/job/38381907947?pr=3019 for a recent example of this workflow in action. ### Result: Increased CI coverage