From 2b4ef27f923ac3530f88d29ea7934ecc791bd6ee Mon Sep 17 00:00:00 2001 From: clfreville2 Date: Wed, 8 Feb 2023 19:04:00 +0100 Subject: [PATCH] Share Cargo cache between CI steps --- .drone.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.drone.yml b/.drone.yml index 57c84c9..077531d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -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: {}