From 2fc34f02d4153439533eb0f2583510a67d104565 Mon Sep 17 00:00:00 2001 From: Jakub Sztandera Date: Sat, 7 Sep 2019 01:27:16 +0200 Subject: [PATCH] Cache params License: MIT Signed-off-by: Jakub Sztandera --- .circleci/config.yml | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 2cefa9d37..9776ac78f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,6 +13,25 @@ commands: - checkout - run: git submodule sync - run: git submodule update --init + download-params: + steps: + - restore_cache: + name: Restore parameters cache + keys: + - 'v1-lotus-params-{{ checksum build/proof-params/parameters.json }}' + paths: + - /var/tmp/filecoin-proof-parameters/ + - build/.params-1024 + - run: + command: GO111MODULE=on go get github.com/ipfs/ipget@c0cbd7d9d1925965a5aa0895d5ff32dbdb4a009e + working_directory: "~" + - run: make build/.params-1024 + - save_cache: + name: Save parameters cache + key: 'v1-lotus-params-{{ checksum build/proof-params/parameters.json }}' + paths: + - /var/tmp/filecoin-proof-parameters/ + - build/.params-1024 jobs: @@ -62,10 +81,8 @@ jobs: - install-deps - prepare - go/mod-download - - run: - command: GO111MODULE=on go get github.com/ipfs/ipget@c0cbd7d9d1925965a5aa0895d5ff32dbdb4a009e - working_directory: "~" - run: echo 'export PATH=$HOME/.cargo/bin:$PATH' >> $BASH_ENV + - download-params - run: command: make deps no_output_timeout: 30m @@ -120,9 +137,7 @@ jobs: - install-deps - prepare - go/mod-download - - run: - command: GO111MODULE=on go get github.com/ipfs/ipget@c0cbd7d9d1925965a5aa0895d5ff32dbdb4a009e - working_directory: "~" + - download-params - run: command: make deps no_output_timeout: 30m