1010 workflow_dispatch :
1111
1212env :
13- NODE_OPTIONS : " --max_old_space_size=8192"
13+ NODE_OPTIONS : ' --max_old_space_size=8192'
1414
1515jobs :
1616 build :
17- runs-on : " ubuntu-latest"
17+ runs-on : ' ubuntu-latest'
1818 outputs :
1919 docker-image-tag : ${{ steps.generate-tag-name.outputs.docker_tag }}
2020 concurrency :
2121 group : ${{ github.workflow }}-${{ github.ref }}
2222 cancel-in-progress : true
2323
2424 steps :
25- - name : Free up disk space (fast )
25+ - name : Free up disk space (comprehensive )
2626 run : |
27+ echo "=== Before cleanup ==="
28+ df -h /
29+
30+ # Essential cleanup for GitHub Actions runner
2731 sudo rm -rf /usr/share/dotnet || true
28- df -h
32+ sudo rm -rf /usr/local/lib/android || true
33+
34+ echo "=== After cleanup ==="
35+ df -h /
36+ echo "Root filesystem available: $(df -h / | awk 'NR==2{print $4}')"
2937
3038 - uses : azure/docker-login@v1
3139 with :
3442
3543 - uses : actions/checkout@v3
3644 with :
37- ref : " preview"
45+ ref : ' preview'
3846 fetch-depth : 1
3947
4048 - name : Verify Nginx configuration
@@ -54,14 +62,25 @@ jobs:
5462 - name : Setup Node.js
5563 uses : actions/setup-node@v2
5664 with :
57- node-version : " 22 "
65+ node-version : ' 22 '
5866
5967 - name : update submodules from preview branch
6068 run : |
6169 git submodule init
6270 git submodule set-branch --branch preview -- src/docs
6371 git submodule update --remote
6472
73+ - name : Check disk space after submodule update
74+ run : |
75+ echo "=== Disk Space Information ==="
76+ df -h
77+ echo ""
78+ echo "=== Disk Usage Summary ==="
79+ df -h --total | grep total
80+ echo ""
81+ echo "=== Available Space on Root Filesystem ==="
82+ df -h / | awk 'NR==2{printf "Total: %s, Used: %s, Available: %s, Usage: %s\n", $2, $3, $4, $5}'
83+
6584 - name : Clean up unnecessary version folders
6685 run : |
6786 # Remove old version folders from /docs/localization/
0 commit comments