Avoid new "out of disk space" issues in CI 2023-04-ci-fix
authorMatt Corallo <git@bluematt.me>
Tue, 12 Mar 2024 15:19:51 +0000 (15:19 +0000)
committerMatt Corallo <git@bluematt.me>
Tue, 12 Mar 2024 15:20:52 +0000 (15:20 +0000)
Our 1.63 build on Ubuntu has been failing for quite some time
because it runs out of disk space trying to build tests in the last
cfg-flag steps. Thus, we add a few new `cargo clean`s here to fix
it.

ci/ci-tests.sh

index 59acb833f1f2d4fe5d7b35a03ef835bb1f682e85..5cae6d45de5f56a778fc95b2e78b5c5fd9f5ffb6 100755 (executable)
@@ -173,5 +173,7 @@ fi
 
 echo -e "\n\nTest cfg-flag builds"
 RUSTFLAGS="--cfg=taproot" cargo test --verbose --color always -p lightning
+[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
 RUSTFLAGS="--cfg=async_signing" cargo test --verbose --color always -p lightning
+[ "$CI_MINIMIZE_DISK_USAGE" != "" ] && cargo clean
 RUSTFLAGS="--cfg=dual_funding" cargo test --verbose --color always -p lightning