Skip to content

Commit

Permalink
Merge pull request ethereum#3648 from ethereum/circlecache
Browse files Browse the repository at this point in the history
Try new caching keys.
  • Loading branch information
chriseth authored Mar 5, 2018
2 parents 9d67e9b + 556fe8a commit 41ea502
Showing 1 changed file with 17 additions and 5 deletions.
22 changes: 17 additions & 5 deletions circle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -96,14 +96,26 @@ jobs:
if [ "$CIRCLE_BRANCH" = release -o -n "$CIRCLE_TAG" ]; then echo -n > prerelease.txt; else date -u +"nightly.%Y.%-m.%-d" > prerelease.txt; fi
echo -n "$CIRCLE_SHA1" > commit_hash.txt
- restore_cache:
key: ccache-{{ arch }}-{{ .Branch }}
key: ccache-{{ arch }}
key: ccache
key: ccache-{{ arch }}-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
key: ccache-{{ arch }}-{{ .Branch }}-
key: ccache-{{ arch }}-develop-
key: ccache-{{ arch }}-
- run:
name: Configure ccache
command: ccache -M 80M && ccache -c && ccache -s && ccache -z
- run:
name: Build
command: ./scripts/build.sh RelWithDebInfo
command: |
mkdir -p build
cd build
cmake .. -DCMAKE_BUILD_TYPE=RelWithDebInfo
make -j4
- run:
name: CCache statistics
command: ccache -s
- save_cache:
key: ccache-{{ arch }}-{{ .Branch }}
key: ccache-{{ arch }}-{{ .Branch }}-{{ .Environment.CIRCLE_SHA1 }}
when: always
paths:
- ~/.ccache
- store_artifacts:
Expand Down

0 comments on commit 41ea502

Please sign in to comment.