diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 8bca8a9..ce7af5f 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,7 +8,7 @@ jobs: test-bot: strategy: matrix: - os: [ubuntu-22.04, macos-13] + os: [ubuntu-22.04, macos-13, macos-14] runs-on: ${{ matrix.os }} steps: - name: Set up Homebrew diff --git a/Formula/reth.rb b/Formula/reth.rb index 2d2f9a8..35af3cf 100644 --- a/Formula/reth.rb +++ b/Formula/reth.rb @@ -12,18 +12,23 @@ class Reth < Formula strategy :github_latest end - bottle do - root_url "https://github.com/paradigmxyz/homebrew-brew/releases/download/reth-0.2.0-beta.6" - sha256 cellar: :any_skip_relocation, x86_64_linux: "7b9c2d91b6ae69b5deace9d2678cec9e843bac772080bdc8191b9a49919d1111" - end - - depends_on "llvm" => :build depends_on "pkg-config" => :build depends_on "rust" => :build def install + features = [] + features.push("jemalloc") if Hardware::CPU.intel? || OS.mac? + + is_arm_linux = Hardware::CPU.arm? && OS.linux? + features.push("asm-keccak") unless is_arm_linux + cd "bin/reth" do - system "cargo", "install", "--bin", "reth", "--profile", "maxperf", "--features", "jemalloc", *std_cargo_args + if features.any? + system "cargo", "install", "--bin", "reth", "--profile", "maxperf", + "--features", features.join(" "), *std_cargo_args + else + system "cargo", "install", "--bin", "reth", "--profile", "maxperf", *std_cargo_args + end end end