Skip to content

Commit 3df693a

Browse files
jgallowa07claude
andcommitted
Disable build cache and add more aggressive disk cleanup for CI
- Remove Android SDK, GHCup, Swift (~10GB more freed) - Disable Docker build cache to save disk space - CI builds will be slower but won't run out of disk space 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent f21b4c4 commit 3df693a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/build.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,16 @@ jobs:
1313
run: |
1414
echo "Disk space before cleanup:"
1515
df -h
16-
# Remove unnecessary tools and packages
16+
# Remove unnecessary tools and packages (frees ~15-20GB)
1717
sudo rm -rf /usr/share/dotnet
1818
sudo rm -rf /opt/ghc
1919
sudo rm -rf "/usr/local/share/boost"
2020
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
21+
sudo rm -rf /usr/local/lib/android
22+
sudo rm -rf /usr/local/.ghcup
23+
sudo rm -rf /usr/share/swift
24+
# Clean apt cache
25+
sudo apt-get clean
2126
# Clean Docker system
2227
docker system prune -af --volumes
2328
echo "Disk space after cleanup:"
@@ -45,8 +50,7 @@ jobs:
4550
push: false
4651
load: true
4752
tags: quay.io/matsengrp/linearham:${{ env.TAG }}
48-
cache-from: type=gha
49-
cache-to: type=gha,mode=max
53+
no-cache: true
5054
- name: Run tests in the Docker image
5155
run: docker run quay.io/matsengrp/linearham:${{ env.TAG }} sh -c "/linearham/_build/test/test"
5256

0 commit comments

Comments
 (0)