From d0866f5e83bde05ee6936de2cf4baf17534766c5 Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 11 Nov 2023 19:58:12 -0700 Subject: [PATCH] maybe this will work for keeping the ci from filling the disk and making everyone sad --- .drone.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/.drone.yml b/.drone.yml index ac685b1..c57acb0 100644 --- a/.drone.yml +++ b/.drone.yml @@ -7,16 +7,40 @@ concurrency: limit: 1 steps: +- name: clean cache + image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target + commands: + - cargo sweep --maxsize 12GiB - name: build image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target commands: - cargo build - name: clippy! image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target commands: - cargo clippy -- --deny warnings - name: test image: rustlang/rust:nightly + volumes: + - name: cache + path: /usr/local/cargo + - name: target-cache + path: /drone/src/target commands: - cargo test --jobs 1