Share Cargo cache between CI steps

This commit is contained in:
clement committed 2023-02-08 19:16:20 +01:00
1 parent 92e98f5479
commit 2b4ef27f92
1 file changed
+15
+15
View File
@@ -7,9 +7,24 @@ steps:
image: rust:1.67
commands:
- cargo build
volumes:
- name: cargo-cache
path: /cache/cargo
environment:
CARGO_HOME: /cache/cargo
- name: test
image: rust:1.67
commands:
- cargo test
volumes:
- name: cargo-cache
path: /cache/cargo
environment:
CARGO_HOME: /cache/cargo
depends_on:
- build
volumes:
- name: cargo-cache
temp: {}