aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchriseth <chris@ethereum.org>2018-03-06 06:39:45 +0800
committerGitHub <noreply@github.com>2018-03-06 06:39:45 +0800
commit41ea502f0e4c67339c4954ba0008a945ba110e87 (patch)
tree1863811492a60e4f683b64b6d987b8a4f3693688
parent9d67e9b4fc1b04a1e2d837a30ffb4ebee8863115 (diff)
parent556fe8a574d6494f68a28267e30808c0448ddcb1 (diff)
downloaddexon-solidity-41ea502f0e4c67339c4954ba0008a945ba110e87.tar.gz
dexon-solidity-41ea502f0e4c67339c4954ba0008a945ba110e87.tar.zst
dexon-solidity-41ea502f0e4c67339c4954ba0008a945ba110e87.zip
Merge pull request #3648 from ethereum/circlecache
Try new caching keys.
-rw-r--r--circle.yml22
1 files changed, 17 insertions, 5 deletions
diff --git a/circle.yml b/circle.yml
index 1ed09ada..45a26fa8 100644
--- a/circle.yml
+++ b/circle.yml
@@ -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: