Skip to content

Commit dec880b

Browse files
committed
Clean up CI runner space
1 parent c953ff1 commit dec880b

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build-eif.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,21 @@ jobs:
2626
runs-on: ubuntu-latest
2727

2828
steps:
29+
- name: Free Disk Space
30+
run: |
31+
echo "Before cleanup:"
32+
df -h /
33+
34+
# Remove unnecessary software to free up ~30GB
35+
sudo rm -rf /usr/share/dotnet
36+
sudo rm -rf /usr/local/lib/android
37+
sudo rm -rf /opt/ghc
38+
sudo rm -rf /opt/hostedtoolcache/CodeQL
39+
sudo docker system prune -af
40+
41+
echo "After cleanup:"
42+
df -h /
43+
2944
- name: Checkout code
3045
uses: actions/checkout@v4
3146

@@ -53,6 +68,11 @@ jobs:
5368
NITRO_HASH=$(sha256sum build-outputs/nitro | cut -d' ' -f1)
5469
echo "NITRO_HASH=${NITRO_HASH}" >> $GITHUB_ENV
5570
echo "Nitro binary SHA256: ${NITRO_HASH}"
71+
72+
# Clean up Docker images to save space
73+
docker system prune -af
74+
echo "Disk after Docker cleanup:"
75+
df -h /
5676
5777
- name: Stage Binary for Nix
5878
run: |

0 commit comments

Comments
 (0)