Cache params

License: MIT
Signed-off-by: Jakub Sztandera <kubuxu@protonmail.ch>
This commit is contained in:
Jakub Sztandera 2019-09-07 01:27:16 +02:00
parent 465d29f89f
commit 2fc34f02d4

View File

@ -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