1
0
Fork 0
mirror of synced 2025-09-23 12:18:44 +00:00

use cache

This commit is contained in:
dark64 2022-01-28 14:31:53 +01:00
parent 9331cc475d
commit 739e93c994

View file

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