Additional Linux Distributions

Tom Doron is a member of the Swift Core Team and the Swift Server Workgroup. He manages a team working on server-side Swift libraries at Apple.

It is my pleasure to announce a new set of Linux distributions officially supported by the Swift project. Swift.org now offers downloadable toolchain and Docker images for the following new Linux distributions:

The above are added to the Linux platforms we already supported:

Porting work for Supporting Fedora-based Distributions

The work to support Fedora based distributions such as CentOS and Amazon Linux included subtle changes in various components of the Swift project:

In all, the work included 9 PRs to the Swift project:

How Downloadable Images are Built

Swift CI has moved to use Docker to build and qualify the new Linux distributions. A Dockerfile has been created for each one of the supported distributions, and CI jobs have been created to build, test and create a signed toolchain.

Linux build Dockerfiles are managed in Swift’s Docker repository with the goal of evolving them in the open with the community. Our plan is to continue and grow the number of Linux distributions we support, with CentOS 7, Debian and Fedora the most likely candidates to be added next.

It is important to note that the new distributions do not run automatically as part of PR testing - we continue to automatically test PRs on Ubuntu 16.04 - but you can “summon” them using the following commands:

Getting Involved

If you are interested in building Swift on Linux, come and get involved!

The source is available, and we encourage contributions from the open source community. If you have feedback, questions or would like to discuss the project, please feel free to chat on the Swift forums. If you would like to report bugs, please use the GitHub issue tracker. We look forward to working with you, and helping move the industry forward to a better, safer programming future.