Skip to content

Commit 9c877bd

Browse files
Jefffreyerratic-pattern
authored andcommitted
CI: try free up space in Rust / cargo test (amd64) action (apache#18709)
Closes apache#18692 (hopefully) Trying to get CI to pass consistently, try various techniques.
1 parent 370988d commit 9c877bd

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/rust.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,21 @@ jobs:
266266
runs-on: ubuntu-latest
267267
container:
268268
image: amd64/rust
269+
volumes:
270+
- /usr/local:/host/usr/local
269271
steps:
272+
- name: Remove unnecessary preinstalled software
273+
run: |
274+
echo "Disk space before cleanup:"
275+
df -h
276+
# remove tool cache: about 8.5GB (github has host /opt/hostedtoolcache mounted as /__t)
277+
rm -rf /__t/* || true
278+
# remove Haskell runtime: about 6.3GB (host /usr/local/.ghcup)
279+
rm -rf /host/usr/local/.ghcup || true
280+
# remove Android library: about 7.8GB (host /usr/local/lib/android)
281+
rm -rf /host/usr/local/lib/android || true
282+
echo "Disk space after cleanup:"
283+
df -h
270284
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
271285
with:
272286
submodules: true

0 commit comments

Comments
 (0)