Skip to content

Commit 388ed32

Browse files
alambJefffrey
andauthored
[branch-51] CI: try free up space in Rust / cargo test (amd64) action (apache#18709) (apache#19037)
## Which issue does this PR close? - part of apache#18843 - Backports apache#18709 from @Jefffrey ## Rationale for this change @tobixdev is hitting a CI failure due to out of space on a different PR: - apache#19017 (comment) @Jefffrey fixed this on main with - apache#18709 So let's backport that change to branch-51 ## What changes are included in this PR? - Backport apache#18709 to branch-51 ## Are these changes tested? by ci <!-- We typically require tests for all PRs in order to: 1. Prevent the code from being accidentally broken by subsequent changes 2. Serve as another way to document the expected behavior of the code If tests are not included in your PR, please explain why (for example, are they covered by existing tests)? --> ## Are there any user-facing changes? no Co-authored-by: Jeffrey Vo <jeffrey.vo.australia@gmail.com>
1 parent fd35a09 commit 388ed32

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,21 @@ jobs:
271271
runs-on: ubuntu-latest
272272
container:
273273
image: amd64/rust
274+
volumes:
275+
- /usr/local:/host/usr/local
274276
steps:
277+
- name: Remove unnecessary preinstalled software
278+
run: |
279+
echo "Disk space before cleanup:"
280+
df -h
281+
# remove tool cache: about 8.5GB (github has host /opt/hostedtoolcache mounted as /__t)
282+
rm -rf /__t/* || true
283+
# remove Haskell runtime: about 6.3GB (host /usr/local/.ghcup)
284+
rm -rf /host/usr/local/.ghcup || true
285+
# remove Android library: about 7.8GB (host /usr/local/lib/android)
286+
rm -rf /host/usr/local/lib/android || true
287+
echo "Disk space after cleanup:"
288+
df -h
275289
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
276290
with:
277291
submodules: true

0 commit comments

Comments
 (0)