mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Restore osx cache
This commit is contained in:
parent
16ae76cad7
commit
8996ae23d2
@ -365,11 +365,31 @@ commands:
|
|||||||
|
|
||||||
install_dependencies_osx:
|
install_dependencies_osx:
|
||||||
steps:
|
steps:
|
||||||
# FIXME: We used to cache dependencies on macOS but now it takes longer than just installing
|
- restore_cache:
|
||||||
# them each time. See https://github.com/ethereum/solidity/issues/12925.
|
keys:
|
||||||
|
- dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
|
- attach_workspace:
|
||||||
|
at: .
|
||||||
|
# DO NOT EDIT between here and save_cache, but rather edit ./circleci/osx_install_dependencies.sh
|
||||||
|
# WARNING! If you do edit anything here instead, remember to invalidate the cache manually.
|
||||||
- run:
|
- run:
|
||||||
name: Install build dependencies
|
name: Install build dependencies
|
||||||
command: .circleci/osx_install_dependencies.sh
|
command: ./.circleci/osx_install_dependencies.sh
|
||||||
|
- run:
|
||||||
|
name: Cleaning outdated packages
|
||||||
|
command: brew cleanup
|
||||||
|
- save_cache:
|
||||||
|
key: dependencies-osx-{{ arch }}-{{ checksum ".circleci/osx_install_dependencies.sh" }}
|
||||||
|
paths:
|
||||||
|
- /usr/local/bin
|
||||||
|
- /usr/local/lib
|
||||||
|
- /usr/local/include
|
||||||
|
- /usr/local/Cellar/boost
|
||||||
|
- /usr/local/Cellar/cmake
|
||||||
|
- /usr/local/Cellar/wget
|
||||||
|
- /usr/local/Cellar/coreutils
|
||||||
|
- /usr/local/Cellar/diffutils
|
||||||
|
- /Users/distiller/Library/Caches/Homebrew
|
||||||
|
|
||||||
defaults:
|
defaults:
|
||||||
|
|
||||||
@ -392,7 +412,6 @@ defaults:
|
|||||||
- via-ir-optimize
|
- via-ir-optimize
|
||||||
- via-ir-no-optimize
|
- via-ir-no-optimize
|
||||||
|
|
||||||
# --------------------------------------------------------------------------
|
|
||||||
# --------------------------------------------------------------------------
|
# --------------------------------------------------------------------------
|
||||||
# Base Image Templates
|
# Base Image Templates
|
||||||
|
|
||||||
@ -1121,8 +1140,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- install_dependencies_osx
|
- install_dependencies_osx
|
||||||
- attach_workspace:
|
|
||||||
at: .
|
|
||||||
- run_soltest
|
- run_soltest
|
||||||
- store_test_results:
|
- store_test_results:
|
||||||
path: test_results/
|
path: test_results/
|
||||||
@ -1135,8 +1152,6 @@ jobs:
|
|||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- install_dependencies_osx
|
- install_dependencies_osx
|
||||||
- attach_workspace:
|
|
||||||
at: .
|
|
||||||
- run_cmdline_tests
|
- run_cmdline_tests
|
||||||
- store_artifacts_test_results
|
- store_artifacts_test_results
|
||||||
- matrix_notify_failure_unless_pr
|
- matrix_notify_failure_unless_pr
|
||||||
|
@ -27,11 +27,14 @@
|
|||||||
|
|
||||||
# note that the following directories may be cached by circleci:
|
# note that the following directories may be cached by circleci:
|
||||||
# - /usr/local/bin
|
# - /usr/local/bin
|
||||||
# - /usr/local/sbin
|
|
||||||
# - /usr/local/lib
|
# - /usr/local/lib
|
||||||
# - /usr/local/include
|
# - /usr/local/include
|
||||||
# - /usr/local/Cellar
|
# - /usr/local/Cellar/boost
|
||||||
# - /usr/local/Homebrew
|
# - /usr/local/Cellar/cmake
|
||||||
|
# - /usr/local/Cellar/wget
|
||||||
|
# - /usr/local/Cellar/coreutils
|
||||||
|
# - /usr/local/Cellar/diffutils
|
||||||
|
# - /Users/distiller/Library/Caches/Homebrew
|
||||||
|
|
||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
@ -52,11 +55,9 @@ function validate_checksum {
|
|||||||
|
|
||||||
if [ ! -f /usr/local/lib/libz3.a ] # if this file does not exists (cache was not restored), rebuild dependencies
|
if [ ! -f /usr/local/lib/libz3.a ] # if this file does not exists (cache was not restored), rebuild dependencies
|
||||||
then
|
then
|
||||||
brew install boost
|
# Install dependencies kegs
|
||||||
brew install cmake
|
brew install boost cmake wget coreutils diffutils
|
||||||
brew install wget
|
|
||||||
brew install coreutils
|
|
||||||
brew install diffutils
|
|
||||||
./scripts/install_obsolete_jsoncpp_1_7_4.sh
|
./scripts/install_obsolete_jsoncpp_1_7_4.sh
|
||||||
|
|
||||||
# z3
|
# z3
|
||||||
|
Loading…
Reference in New Issue
Block a user