Skip to content

Commit f21b4c4

Browse files
jgallowa07claude
andcommitted
Add CI disk space cleanup and exclude obsolete revbayes submodule
- Add disk space cleanup step in CI to free ~15-20GB before Docker build - Exclude lib/revbayes/ directory from Docker build context - Fixes "No space left on device" errors in GitHub Actions 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <[email protected]>
1 parent d3c446d commit f21b4c4

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

.dockerignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
.git
33
.gitignore
44
.gitmodules
5+
lib/revbayes/ # Obsolete submodule - using pre-built RevBayes image instead
56

67
# macOS metadata
78
.DS_Store

.github/workflows/build.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,20 @@ jobs:
99
fetch-depth: 0
1010
submodules: recursive
1111

12+
- name: Free up disk space
13+
run: |
14+
echo "Disk space before cleanup:"
15+
df -h
16+
# Remove unnecessary tools and packages
17+
sudo rm -rf /usr/share/dotnet
18+
sudo rm -rf /opt/ghc
19+
sudo rm -rf "/usr/local/share/boost"
20+
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
21+
# Clean Docker system
22+
docker system prune -af --volumes
23+
echo "Disk space after cleanup:"
24+
df -h
25+
1226
- name: Set git branch and tag variables
1327
run: |
1428
echo "BRANCH=$(git branch --show-current)" >> $GITHUB_ENV

0 commit comments

Comments
 (0)