% docker run swiftlang/swift:nightly-focal bash -c "swift --version"
Swift version 5.6-dev (LLVM ba0b85f590c1ba2, Swift d18133629449a50)
Target: aarch64-unknown-linux-gnu
CentOS 8
% docker run swiftlang/swift:nightly-centos8 bash -c "swift --version"
Swift version 5.6-dev (LLVM ba0b85f590c1ba2, Swift d18133629449a50)
Target: aarch64-unknown-linux-gnu
Amazon Linux 2
docker run swiftlang/swift:nightly-amazonlinux2 bash -c "swift --version"
Swift version 5.6-dev (LLVM ba0b85f590c1ba2, Swift d18133629449a50)
Target: aarch64-unknown-linux-gnu
This is great news - I just switched from swiftarm/swift:latest to swiftlang/swift:nightly-focal and it works like expected.
Sidenote:
As I don't want to run things as current user (not as root) I'm using something like this in my build.sh:
DOCKER_UID=$(id -u ${USER})
DOCKER_GID=$(id -g ${USER})
docker build -t swift:latest -<<EOF
FROM swiftlang/swift:nightly-focal
RUN groupadd -g $DOCKER_GID swift
RUN useradd -m -u $DOCKER_UID -g swift swift
USER swift
WORKDIR /home/swift
CMD ["/home/swift/buildandstart.sh"]
EOF
and mount a directory I use for building with the -v option of docker like this:
It looks like the builds stopped being multi architecture about 20 days ago. Was this reverted? I was really hoping the official 5.5 release would come with ARM images.