From 372f793ad61d1ef61d3c43d0fc5f12c50650d232 Mon Sep 17 00:00:00 2001 From: Andrew Altshuler Date: Sun, 26 Apr 2026 18:19:26 +0300 Subject: [PATCH] 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) --- .github/workflows/release-edge.yml | 2 -- .github/workflows/release.yml | 2 -- scripts/install.sh | 3 --- scripts/update-homebrew-formula.sh | 14 ++++---------- 4 files changed, 4 insertions(+), 17 deletions(-) diff --git a/.github/workflows/release-edge.yml b/.github/workflows/release-edge.yml index 3560b6c..6147646 100644 --- a/.github/workflows/release-edge.yml +++ b/.github/workflows/release-edge.yml @@ -41,8 +41,6 @@ jobs: include: - runner: ubuntu-latest asset_name: omnigraph-linux-x86_64 - - runner: macos-15-intel - asset_name: omnigraph-macos-x86_64 - runner: macos-14 asset_name: omnigraph-macos-arm64 env: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d08b25a..e7fc75f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -18,8 +18,6 @@ jobs: include: - runner: ubuntu-latest asset_name: omnigraph-linux-x86_64 - - runner: macos-15-intel - asset_name: omnigraph-macos-x86_64 - runner: macos-14 asset_name: omnigraph-macos-arm64 env: diff --git a/scripts/install.sh b/scripts/install.sh index 0269767..d1f8bf9 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -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' ;; diff --git a/scripts/update-homebrew-formula.sh b/scripts/update-homebrew-formula.sh index b3cf6c5..6b3984c 100755 --- a/scripts/update-homebrew-formula.sh +++ b/scripts/update-homebrew-formula.sh @@ -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