-
Notifications
You must be signed in to change notification settings - Fork 15
add homebrew taps #292
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
base: main
Are you sure you want to change the base?
add homebrew taps #292
Conversation
To update the formula: | ||
|
||
1. Create a new release on GitHub | ||
2. Update the `url` and `sha256` in `Formula/resolc.rb` |
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.
Stale comment? This should be handled by the github workflow?
# If someone wants to build from latest source: | ||
head "https://github.com/paritytech/revive.git", branch: "master" | ||
depends_on "llvm@18" => :build if build.head? # only needed when building from source |
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.
This won't work because we need our custom LLVM in order to build resolc. So either remove or add a second Formula for our LLVM build. We also do binary releases of those in our repo.
|
||
jobs: | ||
update-formula: | ||
runs-on: ubuntu-latest |
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.
runs-on: ubuntu-latest | |
runs-on: ubuntu-24.04 |
We use fixed version by convention.
run: | | ||
# Get the release version and SHA256 | ||
VERSION=$(echo ${{ github.ref }} | sed 's/refs\/tags\/v//') | ||
SHA256=$(curl -sL https://github.com/paritytech/revive/archive/refs/tags/v${VERSION}.tar.gz | shasum -a 256 | cut -d' ' -f1) |
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.
We also do LLVM releases from this repo. So we need to detect this here and skip if it is a LLVM release.
Add Homebrew Formula for Revive Solidity Compiler (resolc)
This PR adds a Homebrew Formula for the Revive Solidity Compiler (resolc), making it easily installable on macOS systems.
Changes
Formula/resolc.rb
with support for binary installationxattr -c
Installation
Once merged, users can install resolc using:
Notes
Testing
The Formula has been tested with the latest release (v0.1.0-dev.14) and includes a basic test to verify the installation.