The SSWG announced that they are looking for other Linux Distributions besides Ubuntu to support official prebuilt toolchains for in their yearly update:
Swift currently offers prebuilt toolchains for Ubuntu. There are many other distros out there and we’d love to see them supported officially. The process for adding a new Linux distro to Swift is not clear at the moment. We think that can be improved. The community could help by identifying which Linux distros are important and contributing reliable build scripts. In a perfect world, we could make this entire system self serve. Does this sound interesting to you? If so, reach out to us.
Further @tkremenek stated in "On the Road to Swift 6":
Swift is an established language on Apple platforms for app development, and it’s steadily growing in other domains. As a community there are a variety of ways we can accelerate that growth, widening Swift’s availability and impact to everyone.
Here are some concrete goals we can work on together as a community:
- Expand the number of platforms where Swift is available and supported
After some research the only documented way I found to engage in widening the platform support is by administering a Jenkins slave that builds Swift on a given platform as part of the Community-CI effort.
Sadly administering such a slave comes with at least a monetary burden (besides time and security).
For this reason I want to ask: What will the process be to become an officially supported platform? If there is no process planned so far maybe we can start a discussion here.
A case for Amazon Linux 2
As someone trying to be involved in widening the adoption of Swift on the Server and integrating it with AWS, I created a build setup for Amazon Linux 2. One can download a prebuilt toolchain for Swift 5.1.2 and 5.1.3 on my website. Furthermore I created matching Dockerimages and an AWS Lambda Layer to run Swift code natively within Lambda. All scripts involved in building are public on GitHub.
I can imagine that Amazon Linux 2 might be a platform of interest for official Swift support. While being a proprietary Linux Distribution, we can all assume that AWS and with this Amazon Linux is here to stay. One could argue that even on AWS the most common Swift deployment should be within Docker, which is already supported today. But with the rise of "serverless" deployments I would like to state that Swift on AWS Lambda is at least a topic of high interest. For now Lambdas have to be executed in an Amazon Linux container. See discussion and number of topic views on "AWS Lambda Runtime API".
If we want to broaden adoption of Swift on the Server support for AWS Lambda should not involve downloading a Swift toolchain from someones personal website. Even I don't know if I can trust myself.
That's why besides asking for the process of becoming an officially supported platform, I would like to start the discussion if Amazon Linux 2 might be a worthy candidate.
Note: I'm not sure if this is the right category for this topic. I was looking for something named "platforms" but couldn't find anything. This seemed like the least bad candidate.