Skip to content

Commit

Permalink
Merge pull request #274 from ethereum/sol070
Browse files Browse the repository at this point in the history
Solidity 0.7.0
  • Loading branch information
chriseth authored Jul 28, 2020
2 parents d935b7d + f74ccbe commit 41fbdeb
Show file tree
Hide file tree
Showing 3 changed files with 59 additions and 3 deletions.
19 changes: 19 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,25 @@ jobs:
name: Cleanup
command: brew uninstall boost cmake ccache solidity

- run:
name: Install Solidity 0.6
command: |
brew update
#brew tap ethereum/ethereum # Acutally we should use the rule from the pull request
brew install https://raw.githubusercontent.com/ethereum/homebrew-ethereum/${CIRCLE_SHA1}/[email protected]
- run:
name: Test Formula
command: brew test solidity@6

- run:
name: Test Solidity
command: solc --version

- run:
name: Cleanup
command: brew uninstall boost cmake ccache solidity@6

- run:
name: Install Solidity 0.5
command: |
Expand Down
6 changes: 3 additions & 3 deletions solidity.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
class Solidity < Formula
desc "The Solidity Contract-Oriented Programming Language"
homepage "http://solidity.readthedocs.org"
url "https://github.com/ethereum/solidity/releases/download/v0.6.12/solidity_0.6.12.tar.gz"
version "0.6.12"
sha256 "214bd37867d59c0f2f22dbaf10fd8eea2a58c9055c853c5016d26ad7091d5776"
url "https://github.com/ethereum/solidity/releases/download/v0.7.0/solidity_0.7.0.tar.gz"
version "0.7.0"
sha256 "86e782a88eaaf4aa98f4e1e915f46b5bc5f596ea86c784fb911dc6e4c04309bf"

depends_on "cmake" => :build
depends_on "boost" => "c++11"
Expand Down
37 changes: 37 additions & 0 deletions [email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
#------------------------------------------------------------------------------
# solidity.rb
#
# Homebrew formula for solidity. Homebrew (http://brew.sh/) is
# the de-facto standard package manager for OS X, and this Ruby script
# contains the metadata used to map command-line user settings used
# with the 'brew' command onto build options.
#
# Our documentation for the solidity Homebrew setup is at:
#
# http://solidity.readthedocs.io/en/latest/installing-solidity.html
#
# (c) 2014-2017 solidity contributors.
#------------------------------------------------------------------------------

class SolidityAT6 < Formula
desc "The Solidity Contract-Oriented Programming Language"
homepage "http://solidity.readthedocs.org"
url "https://github.com/ethereum/solidity/releases/download/v0.6.12/solidity_0.6.12.tar.gz"
version "0.6.12"
sha256 "214bd37867d59c0f2f22dbaf10fd8eea2a58c9055c853c5016d26ad7091d5776"

depends_on "cmake" => :build
depends_on "boost" => "c++11"
# Note: due to a homebrew limitation, ccache will always be detected and cannot be turned off.
depends_on "ccache" => :build
depends_on "z3"

def install
system "cmake", ".", *std_cmake_args, "-DTESTS=OFF"
system "make", "install"
end

test do
system "#{bin}/solc", "--version"
end
end

0 comments on commit 41fbdeb

Please sign in to comment.