This repository was archived by the owner on Jun 5, 2020. It is now read-only.
File tree Expand file tree Collapse file tree 9 files changed +717
-1704
lines changed Expand file tree Collapse file tree 9 files changed +717
-1704
lines changed Original file line number Diff line number Diff line change 1
- deps_key : &DEPS_KEY
2
- key : dependencies-1.40-{{ checksum "Cargo.lock" }}
3
-
4
- restore_registry : &RESTORE_REGISTRY
5
- restore_cache :
6
- key : registry
7
-
8
- save_registry : &SAVE_REGISTRY
9
- save_cache :
10
- key : registry-{{ .BuildNum }}
11
- paths :
12
- - ~/.cargo/registry/index
13
-
14
- restore_deps : &RESTORE_DEPS
15
- restore_cache :
16
- << : *DEPS_KEY
17
-
18
- save_deps : &SAVE_DEPS
19
- save_cache :
20
- << : *DEPS_KEY
21
- paths :
22
- - target
23
- - ~/.cargo/registry/cache
24
-
25
1
version : 2
26
2
jobs :
27
3
build :
28
4
docker :
29
- - image : rust:1.40.0
5
+ - image : rustlang/ rust:nightly
30
6
steps :
31
7
- checkout
32
- - run : apt-get update
33
- - run : apt-get install -y --no-install-recommends cmake zlib1g-dev
34
- - << : *RESTORE_REGISTRY
35
- - << : *RESTORE_DEPS
8
+ - run : rustc --version > ~/rust-version
9
+ - restore_cache :
10
+ key : registry
11
+ - restore_cache :
12
+ key : dependencies-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
36
13
- run : cargo build --locked
37
14
- run : cargo run --locked -- tree
38
- - << : *SAVE_REGISTRY
39
- - << : *SAVE_DEPS
15
+ - save_cache :
16
+ key : registry-{{ .BuildNum }}
17
+ paths :
18
+ - /usr/local/cargo/registry/index
19
+ - save_cache :
20
+ key : dependencies-{{ checksum "~/rust-version" }}-{{ checksum "Cargo.lock" }}
21
+ paths :
22
+ - target
23
+ - /usr/local/cargo/registry/cache
You can’t perform that action at this time.
0 commit comments