mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
d176716d47
Fixes the following issue: Error: homebrew-core is a shallow clone. homebrew-cask is a shallow clone. To `brew update`, first run: git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow These commands may take a few minutes to run due to the large size of the repositories. This restriction has been made on GitHub's request because updating shallow clones is an extremely expensive operation due to the tree layout and traffic of Homebrew/homebrew-core and Homebrew/homebrew-cask. We don't do this for you automatically to avoid repeatedly performing an expensive unshallow operation in CI systems (which should instead be fixed to not use shallow clones). Sorry for the inconvenience!
69 lines
2.5 KiB
Bash
Executable File
69 lines
2.5 KiB
Bash
Executable File
#! /bin/bash
|
|
#------------------------------------------------------------------------------
|
|
# Bash script to install osx dependencies
|
|
#
|
|
# The documentation for solidity is hosted at:
|
|
#
|
|
# https://docs.soliditylang.org
|
|
#
|
|
# ------------------------------------------------------------------------------
|
|
# This file is part of solidity.
|
|
#
|
|
# solidity is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# solidity is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with solidity. If not, see <http://www.gnu.org/licenses/>
|
|
#
|
|
# (c) 2016-2019 solidity contributors.
|
|
# ------------------------------------------------------------------------------
|
|
|
|
# note that the following directories may be cached by circleci:
|
|
# - /usr/local/bin
|
|
# - /usr/local/sbin
|
|
# - /usr/local/lib
|
|
# - /usr/local/include
|
|
# - /usr/local/Cellar
|
|
# - /usr/local/Homebrew
|
|
|
|
set -eu
|
|
|
|
if [ ! -f /usr/local/lib/libz3.a ] # if this file does not exists (cache was not restored), rebuild dependencies
|
|
then
|
|
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch --unshallow
|
|
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask fetch --unshallow
|
|
brew update
|
|
brew unlink python
|
|
brew install boost
|
|
brew install cmake
|
|
brew install wget
|
|
brew install coreutils
|
|
./scripts/install_obsolete_jsoncpp_1_7_4.sh
|
|
|
|
# z3
|
|
wget https://github.com/Z3Prover/z3/releases/download/z3-4.8.10/z3-4.8.10-x64-osx-10.15.7.zip
|
|
unzip z3-4.8.10-x64-osx-10.15.7.zip
|
|
rm -f z3-4.8.10-x64-osx-10.15.7.zip
|
|
cp z3-4.8.10-x64-osx-10.15.7/bin/libz3.a /usr/local/lib
|
|
cp z3-4.8.10-x64-osx-10.15.7/bin/z3 /usr/local/bin
|
|
cp z3-4.8.10-x64-osx-10.15.7/include/* /usr/local/include
|
|
rm -rf z3-4.8.10-x64-osx-10.15.7
|
|
|
|
# evmone
|
|
wget https://github.com/ethereum/evmone/releases/download/v0.7.0/evmone-0.7.0-darwin-x86_64.tar.gz
|
|
tar xzpf evmone-0.7.0-darwin-x86_64.tar.gz -C /usr/local
|
|
rm -f evmone-0.7.0-darwin-x86_64.tar.gz
|
|
|
|
# hera
|
|
wget https://github.com/ewasm/hera/releases/download/v0.3.2-evmc8/hera-0.3.2+commit.dc886eb7-darwin-x86_64.tar.gz
|
|
tar xzpf hera-0.3.2+commit.dc886eb7-darwin-x86_64.tar.gz -C /usr/local
|
|
rm -f hera-0.3.2+commit.dc886eb7-darwin-x86_64.tar.gz
|
|
fi
|