Drop macOS x86_64 build target (#55)

Stop producing the omnigraph-macos-x86_64 archive in both the
stable and edge release workflows. The macos-15-intel runner
build was the slowest of the matrix and Apple Silicon is now
the default Mac developer target.

- release.yml + release-edge.yml: drop the macos-15-intel matrix entry
- install.sh: drop the Darwin/x86_64 case so Intel Macs get a clear
  "no prebuilt binary" error instead of attempting an absent download
- update-homebrew-formula.sh: drop the MACOS_X86_* variables and emit
  an arm64-only Homebrew formula. The on_macos block now declares
  `depends_on arch: :arm64` so Intel `brew install` fails fast with
  a clear architecture message instead of installing an arm64 binary
  that errors at exec time.

Linux x86_64 build is unaffected.

Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Andrew Altshuler 2026-04-26 18:19:26 +03:00 committed by GitHub
parent 0469b6883e
commit 372f793ad6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 4 additions and 17 deletions

View file

@ -35,9 +35,6 @@ platform_asset_name() {
Linux/x86_64)
printf 'omnigraph-linux-x86_64.tar.gz\n'
;;
Darwin/x86_64)
printf 'omnigraph-macos-x86_64.tar.gz\n'
;;
Darwin/arm64)
printf 'omnigraph-macos-arm64.tar.gz\n'
;;

View file

@ -46,14 +46,12 @@ VERSION="${TAG#v}"
RELEASE_JSON="$(gh release view "$TAG" --repo "$REPO_SLUG" --json assets)"
MACOS_ARM_URL="https://github.com/${REPO_SLUG}/releases/download/${TAG}/omnigraph-macos-arm64.tar.gz"
MACOS_X86_URL="https://github.com/${REPO_SLUG}/releases/download/${TAG}/omnigraph-macos-x86_64.tar.gz"
LINUX_X86_URL="https://github.com/${REPO_SLUG}/releases/download/${TAG}/omnigraph-linux-x86_64.tar.gz"
MACOS_ARM_SHA="$(asset_digest "$RELEASE_JSON" "omnigraph-macos-arm64.tar.gz")"
MACOS_X86_SHA="$(asset_digest "$RELEASE_JSON" "omnigraph-macos-x86_64.tar.gz")"
LINUX_X86_SHA="$(asset_digest "$RELEASE_JSON" "omnigraph-linux-x86_64.tar.gz")"
for value in "$MACOS_ARM_SHA" "$MACOS_X86_SHA" "$LINUX_X86_SHA"; do
for value in "$MACOS_ARM_SHA" "$LINUX_X86_SHA"; do
if [[ -z "$value" ]]; then
printf 'error: failed to resolve one or more release asset digests for %s\n' "$TAG" >&2
exit 1
@ -70,13 +68,9 @@ class Omnigraph < Formula
version "${VERSION}"
on_macos do
if Hardware::CPU.arm?
url "${MACOS_ARM_URL}"
sha256 "${MACOS_ARM_SHA}"
else
url "${MACOS_X86_URL}"
sha256 "${MACOS_X86_SHA}"
end
depends_on arch: :arm64
url "${MACOS_ARM_URL}"
sha256 "${MACOS_ARM_SHA}"
end
on_linux do