diff --git a/.gitea/workflows/build-and-test.yml b/.gitea/workflows/build-and-test.yml index 80a287b..dc27d52 100644 --- a/.gitea/workflows/build-and-test.yml +++ b/.gitea/workflows/build-and-test.yml @@ -157,6 +157,19 @@ jobs: - name: Test run: cargo test --workspace + # The runner has one 99 GB disk shared with its images, and this job + # ended at 92 GB (2.1 GB free) on v0.18.0's run; v0.18.1's release + # build then died with "No space left on device". The test executables + # and examples in target/debug are the largest things in it, are never + # reused (a changed source relinks them) and are not what the cache is + # for — the dependency rlibs are — so they go before the release build + # rather than competing with it. + - name: Free the test binaries before the release build + run: | + find target/debug/deps -maxdepth 1 -type f -executable -delete + rm -rf target/debug/examples target/debug/incremental + df -h /workspace 2>/dev/null || df -h . + - name: Build run: cargo build --workspace --release