A proposal for portable Linux builds – right now it's not possible to simply download the release binary from a tag and run it on Linux without the swift standard library.
I suspect it might be preferable to produce two build artifacts – one smaller dynamically-linked version, and this larger statically-linked version.
Portability only goes so far – a quick test shows that it works on these (dockerized) distros (as tested by running xclogparser version):
debian:latest
ubuntu:latest
archlinux:latest
But does not work on:
amazonlinux:latest (uses glibc 2.26, not 2.27)
alpine:latest (missing all of glibc)
Happy to hear y'alls thoughts on this!
Note: I needed to modify the Dockerfile to make build_release_in_docker.sh work – otherwise SPM would fail.
A proposal for portable Linux builds – right now it's not possible to simply download the release binary from a tag and run it on Linux without the swift standard library.
I suspect it might be preferable to produce two build artifacts – one smaller dynamically-linked version, and this larger statically-linked version.
Portability only goes so far – a quick test shows that it works on these (dockerized) distros (as tested by running
xclogparser version
):But does not work on:
Happy to hear y'alls thoughts on this!
Note: I needed to modify the
Dockerfile
to makebuild_release_in_docker.sh
work – otherwise SPM would fail.