A peer-to-peer stack for code collaboration
Improve CircleCI macOS build
Thomas Scholtes59dda850ad63
diff --git a/.circleci/config.yml b/.circleci/config.ymlindex 211838c..db31efe 100644--- a/.circleci/config.yml+++ b/.circleci/config.yml@@ -6,12 +6,6 @@ jobs:steps:- checkout- - restore_cache:- keys:- - stack-root-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}-{{ checksum "package.yaml" }}- - stack-root-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}- - stack-root-{{ arch }}-ghc8.6.3--- restore_cache:keys:- toolchain-{{ arch }}@@ -59,6 +53,8 @@ jobs:name: Homebrew Dependenciescommand: |brew install coreutils+ echo 'export PATH="/usr/local/opt/coreutils/libexec/gnubin:$PATH"' >> $BASH_ENV+if [[ "$CIRCLE_BRANCH" == "master" ]]; thenbrew tap caskroom/caskbrew cask install google-cloud-sdk@@ -69,12 +65,23 @@ jobs:paths:- /usr/local/Homebrew+ - restore_cache:+ keys:+ - stack-root-v2-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}-{{ checksum "package.yaml" }}+ - stack-root-v2-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}+ - stack-root-v2-{{ arch }}-ghc8.6.3-+ - stack-root-{{ arch }}-ghc8.6.3-+- run:name: Build Dependencies- command: stack build --no-terminal --dependencies-only+ command: |+ stack build --no-terminal --dependencies-only+ # Don’t want this files to be cached. They are large and+ # not needed+ rm -rf ~/.stack/indices/Hackage/00-index.tar*- save_cache:- key: stack-root-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}-{{ checksum "package.yaml" }}+ key: stack-root-v2-{{ arch }}-ghc8.6.3-{{ checksum "snapshot.yaml" }}-{{ checksum "package.yaml" }}paths:- "~/.stack"