fix(release): build the darwin-arm64 binary when the free macOS runner has the memory for it (#10004)

Releases try to build floci-aws-darwin-arm64 again on the free
macos-latest runner, with a 9 GB native-image heap, -Ob and two build
threads. A first step checks the runner's memory: below 12 GiB the job
warns and skips the build, and publish-binaries, which stages
darwin-arm64 as optional, releases without it. platforms=missing
backfills it later. The installation page lists the Apple Silicon
binary and keeps the Rosetta 2 note for releases that lack it.

Closes #10084
This commit is contained in:
Tiago Sousa authored and GitHub committed 2026-12-03 11:42:10 -04:00
1 parent dfab0019cd
commit 6bcb7c820b
4 files changed
+40 -15

No files matched your search

+3 -3
View File
@@ -7,17 +7,17 @@
#
# PLATFORMS is `missing` (the binaries the release does not have yet), `all`, `none` (no binaries:
# a dispatch that only repairs the release's images), or a comma list of linux-amd64, linux-arm64,
# linux-arm64-baseline, darwin-amd64, windows-amd64. A named platform the release already carries is
# linux-arm64-baseline, darwin-arm64, darwin-amd64, windows-amd64. A named platform the release already carries is
# refused unless REPLACE=true; `missing` and `none` never replace anything.
#
# Writes key=value lines to $GITHUB_OUTPUT (stdout when unset, so it doubles as a dry run):
# linux_amd64, linux_arm64, linux_arm64_baseline, darwin_amd64, windows_amd64 true|false
# linux_amd64, linux_arm64, linux_arm64_baseline, darwin_arm64, darwin_amd64, windows_amd64 true|false
# standalone comma list of the selected macOS/Windows platforms, for standalone-binaries.yml
# any true when at least one binary is selected
# Exits non-zero, building nothing, when the request is invalid.
set -euo pipefail
ALL=(linux-amd64 linux-arm64 linux-arm64-baseline darwin-amd64 windows-amd64)
ALL=(linux-amd64 linux-arm64 linux-arm64-baseline darwin-arm64 darwin-amd64 windows-amd64)
OUT=${GITHUB_OUTPUT:-/dev/stdout}
SUMMARY=${GITHUB_STEP_SUMMARY:-/dev/null}