Skip to content

Commit 5f8efbf

Browse files
authored
Try to free up space on github actions workers. (#5342)
This should hopefully mitigate the risk of `no space left on device` that sometimes happens
1 parent cdc1bb3 commit 5f8efbf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/actions/post-build-selective/action.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,16 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18+
# Try to free up some space on the github actions runners by deleting things we
19+
# don't care about. Truncate the output using `head` so we can still see some output,
20+
# but not so much it floods the logs
21+
- run: head -n100 <(rm -rfv /usr/local/lib/android)
22+
shell: bash
23+
- run: head -n100 <(rm -rfv /opt/ghc)
24+
shell: bash
25+
- run: head -n100 <(rm -rfv /usr/local/.ghcup)
26+
shell: bash
27+
1828
- uses: actions/setup-node@v4
1929
with: { node-version: '22' }
2030

0 commit comments

Comments
 (0)