From db6279af7ff5d90d4832f2053292397de7de8831 Mon Sep 17 00:00:00 2001 From: Piotr Galar Date: Fri, 17 Oct 2025 18:32:53 +0200 Subject: [PATCH] Revert "Revert "ci: stop supporting x64 macos binaries (#25)" (#28)" This reverts commit b04c2648d18523cc5234436ae1bc5dfcc5c6d18d. --- Templates/lotus-miner.rb | 12 +++++++----- Templates/lotus.rb | 10 ++++++---- load-from-github.sh | 8 ++++---- 3 files changed, 17 insertions(+), 13 deletions(-) diff --git a/Templates/lotus-miner.rb b/Templates/lotus-miner.rb index c2457dc..2156669 100644 --- a/Templates/lotus-miner.rb +++ b/Templates/lotus-miner.rb @@ -8,12 +8,14 @@ class LotusMiner < Formula depends_on "hwloc" on_macos do - url "${MINER_MACOS_URL}" - sha256 "${MINER_MACOS_SHA}" + on_arm do + url "${MINER_MACOS_URL}" + sha256 "${MINER_MACOS_SHA}" - def install - bin.install "lotus-miner" - bin.install "lotus-worker" + def install + bin.install "lotus-miner" + bin.install "lotus-worker" + end end end diff --git a/Templates/lotus.rb b/Templates/lotus.rb index 8996a87..cf95931 100644 --- a/Templates/lotus.rb +++ b/Templates/lotus.rb @@ -8,11 +8,13 @@ class Lotus < Formula depends_on "hwloc" on_macos do - url "${NODE_MACOS_URL}" - sha256 "${NODE_MACOS_SHA}" + on_arm do + url "${NODE_MACOS_URL}" + sha256 "${NODE_MACOS_SHA}" - def install - bin.install "lotus" + def install + bin.install "lotus" + end end end diff --git a/load-from-github.sh b/load-from-github.sh index a7183ce..85edec1 100755 --- a/load-from-github.sh +++ b/load-from-github.sh @@ -31,14 +31,14 @@ miner_tag=$(get_latest_release "miner/v") miner_version=${miner_tag#"miner/v"} # Node URLS -node_macos_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_darwin_all.tar.gz" -node_macos_sha_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_darwin_all.tar.gz.sha512" +node_macos_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_darwin_arm64.tar.gz" +node_macos_sha_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_darwin_arm64.tar.gz.sha512" node_linux_intel_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_linux_amd64_v1.tar.gz" node_linux_intel_sha_url="https://github.com/${REPO}/releases/download/${node_tag}/lotus_${node_tag}_linux_amd64_v1.tar.gz.sha512" # Miner URLS -miner_macos_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_darwin_all.tar.gz" -miner_macos_sha_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_darwin_all.tar.gz.sha512" +miner_macos_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_darwin_arm64.tar.gz" +miner_macos_sha_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_darwin_arm64.tar.gz.sha512" miner_linux_intel_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_linux_amd64_v1.tar.gz" miner_linux_intel_sha_url="https://github.com/${REPO}/releases/download/${miner_tag}/lotus-miner_v${miner_version}_linux_amd64_v1.tar.gz.sha512"