Skip to content

Commit 7f27266

Browse files
appdevelopskclaude
andcommitted
ci(deploy): ビルド前にランナーのディスクを確保しENOSPCを解消
218ツール×17言語=約7,800ページのSSGで ubuntu-latest が no space left on device で失敗していた。未使用SDK削除で約30GB確保。 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 5daf066 commit 7f27266

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

‎.github/workflows/deploy.yml‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ jobs:
2525
steps:
2626
- uses: actions/checkout@v4
2727

28+
# 218ツール×17言語=約7,800ページのSSGでランナーのディスクが枯渇する(ENOSPC)。
29+
# ビルド前に未使用のプリインストールSDKを削除して約30GB確保する。
30+
- name: Free disk space
31+
working-directory: /
32+
run: |
33+
echo "Before:"; df -h / | tail -1
34+
sudo rm -rf /usr/share/dotnet /opt/ghc /usr/local/.ghcup \
35+
/usr/local/lib/android /usr/local/share/boost \
36+
/usr/local/share/powershell /usr/share/swift "$AGENT_TOOLSDIRECTORY" || true
37+
sudo docker image prune -af || true
38+
echo "After:"; df -h / | tail -1
39+
2840
- uses: actions/setup-node@v4
2941
with:
3042
node-version: "24"

0 commit comments

Comments
 (0)