Skip to content

Conversation

@jkmassel
Copy link

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.

Copy link
Collaborator

@PatrikBillgren PatrikBillgren left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for submitting the PR! Supporting this use case sounds good to me. Do you have possibility to extend the PR with the functionality you described for creating two artifacts?

@jkmassel jkmassel force-pushed the add/portable-linux-builds branch 2 times, most recently from bce2033 to a8aaaeb Compare December 5, 2023 06:21
Signed-off-by: Jeremy Massel <1123407+jkmassel@users.noreply.github.com>
@jkmassel jkmassel force-pushed the add/portable-linux-builds branch from a8aaaeb to 2fd4414 Compare December 5, 2023 06:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants