From 2cd382af73f5984aed5b43ba4cec64a3959ace1c Mon Sep 17 00:00:00 2001 From: Jordan Petridis Date: Mon, 29 Jul 2024 15:40:24 +0300 Subject: [PATCH] ci: Cleanup the cargo registry in the images Part-of: --- ci/scripts/install-rust.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ci/scripts/install-rust.sh b/ci/scripts/install-rust.sh index a0fd0884be..0fa72b728a 100644 --- a/ci/scripts/install-rust.sh +++ b/ci/scripts/install-rust.sh @@ -24,3 +24,7 @@ cargo install --locked cargo-c --version 0.10.5+cargo-0.83.0 rustup --version cargo --version rustc --version + +# Cleanup the registry after install +# so we don't have to save 200mb of the index in the ci image +rm -rf "$CARGO_HOME/registry"