use cache
This commit is contained in:
parent
9331cc475d
commit
739e93c994
1 changed files with 16 additions and 1 deletions
|
@ -122,19 +122,34 @@ jobs:
|
||||||
zokrates_js_build:
|
zokrates_js_build:
|
||||||
docker:
|
docker:
|
||||||
- image: zokrates/env:latest
|
- image: zokrates/env:latest
|
||||||
|
resource_class: large
|
||||||
|
working_directory: ~/project/zokrates_js
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- js-cache-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: Build
|
name: Build
|
||||||
no_output_timeout: "30m"
|
no_output_timeout: "30m"
|
||||||
command: cd zokrates_js && npm run build
|
command: npm run build
|
||||||
|
- save_cache:
|
||||||
|
paths:
|
||||||
|
- target/debug/.fingerprint
|
||||||
|
- target/debug/build
|
||||||
|
- target/debug/deps
|
||||||
|
key: js-cache-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
zokrates_js_test:
|
zokrates_js_test:
|
||||||
docker:
|
docker:
|
||||||
- image: zokrates/env:latest
|
- image: zokrates/env:latest
|
||||||
|
resource_class: large
|
||||||
working_directory: ~/project/zokrates_js
|
working_directory: ~/project/zokrates_js
|
||||||
steps:
|
steps:
|
||||||
- checkout:
|
- checkout:
|
||||||
path: ~/project
|
path: ~/project
|
||||||
|
- restore_cache:
|
||||||
|
keys:
|
||||||
|
- js-cache-{{ .Environment.CACHE_VERSION }}-{{ arch }}-{{ checksum "Cargo.lock" }}
|
||||||
- run:
|
- run:
|
||||||
name: Check format
|
name: Check format
|
||||||
command: cargo fmt --all -- --check
|
command: cargo fmt --all -- --check
|
||||||
|
|
Loading…
Reference in a new issue