Skip to content

Commit 7ce9733

Browse files
committed
fix: 添加磁盘空间清理步骤,解决 GitHub Actions 空间不足问题
1 parent 099e9b6 commit 7ce9733

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/docker-build-push.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,18 @@ jobs:
3131
build_type: [cpu, gpu]
3232

3333
steps:
34+
- name: Free Disk Space
35+
run: |
36+
echo "Disk space before cleanup:"
37+
df -h
38+
sudo rm -rf /usr/share/dotnet
39+
sudo rm -rf /usr/local/lib/android
40+
sudo rm -rf /opt/ghc
41+
sudo rm -rf /opt/hostedtoolcache/CodeQL
42+
sudo docker image prune --all --force
43+
echo "Disk space after cleanup:"
44+
df -h
45+
3446
- name: Checkout repository
3547
uses: actions/checkout@v4
3648

0 commit comments

Comments
 (0)