Skip to content

Conversation

@chrisnovakovic
Copy link
Contributor

Now that please_pex writes a preamble C binary that is native to each platform supported by Please, please_pex is no longer just a Go binary that can be cross-compiled for every platform on a Linux amd64 runner: the preamble needs to be built natively for each platform and embedded in the please_pex binary for that platform.

Reorganise the please_pex test, build and release workflow so that the release binaries are built natively on their respective platforms: alpine-builder for Linux (linking statically to musl results in a nice ~94KB binary), freebsd-builder for FreeBSD, and GitHub Actions' macOS 15 runners for Darwin.

Although Ubuntu arm64 GitHub runners are available, the linux_arm64 release has to be built on an Ubuntu amd64 runner because JavaScript-based workflow actions currently can't be executed on an Alpine arm64 container running on an arm64 host - see:

Now that please_pex writes a preamble C binary that is native to each
platform supported by Please, please_pex is no longer just a Go binary
that can be cross-compiled for every platform on a Linux amd64 runner:
the preamble needs to be built natively for each platform and embedded
in the please_pex binary for that platform.

Reorganise the please_pex test, build and release workflow so that the
release binaries are built natively on their respective platforms:
[alpine-builder](https://github.com/please-build/alpine-builder) for
Linux (linking statically to musl results in a nice ~94KB binary),
[freebsd-builder](https://github.com/please-build/freebsd-builder) for
FreeBSD, and GitHub Actions' macOS 15 runners for Darwin.

Although Ubuntu arm64 GitHub runners are available, the linux_arm64
release has to be built on an Ubuntu amd64 runner because
JavaScript-based workflow actions currently can't be executed on an
Alpine arm64 container running on an arm64 host - see:

- actions/upload-artifact#739
- actions/runner#801
@chrisnovakovic chrisnovakovic merged commit 989f654 into please-build:master Dec 3, 2025
@chrisnovakovic chrisnovakovic deleted the arch-specific-release-workflow branch December 3, 2025 15:54
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