Share Cargo cache between CI steps
This commit is contained in:
15
.drone.yml
15
.drone.yml
@@ -7,9 +7,24 @@ steps:
|
|||||||
image: rust:1.67
|
image: rust:1.67
|
||||||
commands:
|
commands:
|
||||||
- cargo build
|
- cargo build
|
||||||
|
volumes:
|
||||||
|
- name: cargo-cache
|
||||||
|
path: /cache/cargo
|
||||||
|
environment:
|
||||||
|
CARGO_HOME: /cache/cargo
|
||||||
|
|
||||||
- name: test
|
- name: test
|
||||||
image: rust:1.67
|
image: rust:1.67
|
||||||
|
commands:
|
||||||
- cargo test
|
- cargo test
|
||||||
|
volumes:
|
||||||
|
- name: cargo-cache
|
||||||
|
path: /cache/cargo
|
||||||
|
environment:
|
||||||
|
CARGO_HOME: /cache/cargo
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
volumes:
|
||||||
|
- name: cargo-cache
|
||||||
|
temp: {}
|
||||||
|
Reference in New Issue
Block a user