Install Swift 4.2.1 in addition to 5.2.5 so the images work with old and new containers
@@ -163,6 +163,15 @@ EOF
### Install Swift toolchains.
{
+ # Swift 4.2.1
+ curl -fsSL https://mirror.bazel.build/swift.org/builds/swift-4.2.1-release/ubuntu1604/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu16.04.tar.gz | \
+ tar xz -C /opt
+ curl -fsSL https://mirror.bazel.build/swift.org/builds/swift-4.2.1-release/ubuntu1804/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu18.04.tar.gz | \
+ tar xz -C /opt
+ curl -fsSL https://mirror.bazel.build/swift.org/builds/swift-4.2.1-release/ubuntu2004/swift-4.2.1-RELEASE/swift-4.2.1-RELEASE-ubuntu20.04.tar.gz | \
+ tar xz -C /opt
+
+ # Swift 5.2.5
curl -fsSL https://mirror.bazel.build/swift.org/builds/swift-5.2.5-release/ubuntu1604/swift-5.2.5-RELEASE/swift-5.2.5-RELEASE-ubuntu16.04.tar.gz | \
tar xz -C /opt
curl -fsSL https://mirror.bazel.build/swift.org/builds/swift-5.2.5-release/ubuntu1804/swift-5.2.5-RELEASE/swift-5.2.5-RELEASE-ubuntu18.04.tar.gz | \
