File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,34 @@ jobs:
144144 run : |
145145 source /opt/rh/devtoolset-10/enable
146146 cmake --build build --config ${{ env.BUILD_TYPE }}
147+
148+ - name : Debug Disk Usage After Build
149+ run : |
150+ echo "==================== 磁盘使用全景 ===================="
151+ df -h
152+ echo ""
153+ echo "==================== 根目录大小Top 20 ===================="
154+ sudo du -h --max-depth=1 / 2>/dev/null | sort -hr | head -20 || true
155+ echo ""
156+ echo "==================== 工作区大小详情 ===================="
157+ du -h --max-depth=3 ${{ github.workspace }} 2>/dev/null | sort -hr | head -30 || true
158+ echo ""
159+ echo "==================== 寻找大于100MB的文件 ===================="
160+ find / -type f -size +100M 2>/dev/null | xargs -I {} ls -lh {} 2>/dev/null | head -20 || true
161+ echo ""
162+ echo "==================== 重点目录检查 ===================="
163+ echo "--- deps 目录 ---"
164+ ls -la ${{ github.workspace }}/deps/ 2>/dev/null | head -5 || true
165+ du -sh ${{ github.workspace }}/deps/ 2>/dev/null || true
166+ echo ""
167+ echo "--- buildtrees 目录 ---"
168+ du -sh ${{ github.workspace }}/buildtrees/ 2>/dev/null || true
169+ echo ""
170+ echo "--- /usr/local 目录 ---"
171+ du -sh /usr/local/ 2>/dev/null || true
172+ echo ""
173+ echo "--- /opt 目录 ---"
174+ du -sh /opt/ 2>/dev/null || true
147175
148176 - name : Cleanup Build Trees
149177 run : |
You can’t perform that action at this time.
0 commit comments