Fix macOS Apple Silicon release builds #952
Merged
+30
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The
docker.elastic.co/beats-dev/golang-crossbuild:1.24.0-darwin-arm64-debian10
container is used for the release builds for the macOS Apple Silicon host. This container will only run on hosts of the linux/arm64 architecture.The GitHub Actions runner machine previously used to perform the release builds is of the linux/amd64 architecture and so is not compatible with the container. This caused the release builds to fail:
The failure is resolved by configuring the release workflows to use the
ubuntu-24.04-arm
runner machine that is compatible with the container.The standard practice is to use the "latest" GitHub Actions runner identifiers, which causes the workflow runs to always use the newest stable runner version. However, GitHub has broken from this established convention by refusing to provide "latest" identifiers for the Linux ARM runners. For this reason, the version-specific runner name was used in the workflow. It will be necessary to manually update the runner name as new stable versions are made available (or more likely after the removal of the runner in use breaks the workflows).
Related: arduino/arduino-cli#2896