-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ci: build for macos arm #42
Closed
Closed
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
5c753b2
ci: build for macos arm
onbjerg 9bd6ce8
chore: rebuild reth bottle
onbjerg 567e2c4
fix: don't use jemalloc on arm
onbjerg 4db9040
chore: fmt
onbjerg 8f99feb
fix: don't install llvm twice
onbjerg ec0e4a3
chore: always use jemalloc on mac
onbjerg 028faa4
chore: fmt
onbjerg b167e2a
feat: enable `asm-keccak` unless arm linux
onbjerg 270a6f5
chore: we do a little ruby i guess
onbjerg 2ff3fe4
chore: awesome
onbjerg e6c3643
fix: don't splat features
onbjerg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. i removed this because it was actually silently causing artifacts to go missing for x86 mac due to llvm already being installed by rust, just a diff version - so the linker would get confused 🤷🏻 |
||
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 | ||
|
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i removed this to have it regen the bottles