From 9e0cdcfa93c9b25cb07e36148667a7c4cb64802f Mon Sep 17 00:00:00 2001 From: Josh Stone Date: Wed, 21 Jul 2021 09:44:42 -0700 Subject: [PATCH] Clean some temporary files to reduce total disk space --- rust.spec | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/rust.spec b/rust.spec index 808d073..bd97f32 100644 --- a/rust.spec +++ b/rust.spec @@ -610,6 +610,9 @@ for triple in %{cross_targets}; do done %endif +# These are transient files used by x.py dist and install +rm -rf ./build/dist/ ./build/tmp/ + # Make sure the shared libraries are in the proper libdir %if "%{_libdir}" != "%{common_libdir}" mkdir -p %{buildroot}%{_libdir} @@ -681,8 +684,13 @@ rm -f %{buildroot}%{rustlibdir}/%{rust_triple}/bin/rust-ll* export %{rust_env} # The results are not stable on koji, so mask errors and just log it. +# Some of the larger test artifacts are manually cleaned to save space. %{python} ./x.py test --no-fail-fast --stage 2 || : +rm -rf "./build/%{rust_triple}/test/" + %{python} ./x.py test --no-fail-fast --stage 2 cargo || : +rm -rf "./build/%{rust_triple}/stage2-tools/%{rust_triple}/cit/" + %{python} ./x.py test --no-fail-fast --stage 2 clippy || : %{python} ./x.py test --no-fail-fast --stage 2 rls || : %{python} ./x.py test --no-fail-fast --stage 2 rustfmt || :