Skip to content

Commit 2cae817

Browse files
authored
fix ci
1 parent 96b0e6f commit 2cae817

1 file changed

Lines changed: 6 additions & 46 deletions

File tree

.github/workflows/pika.yml

Lines changed: 6 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -145,34 +145,6 @@ jobs:
145145
source /opt/rh/devtoolset-10/enable
146146
cmake --build build --config ${{ env.BUILD_TYPE }}
147147
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
175-
176148
- name: Cleanup Build Trees
177149
run: |
178150
rm -rf ./buildtrees
@@ -198,24 +170,12 @@ jobs:
198170
199171
- name: Extreme Disk Cleanup
200172
run: |
201-
202-
rm -rf /usr/local/share/* || true
203-
rm -rf /usr/share/doc/* || true
204-
rm -rf /usr/share/man/* || true
205-
rm -rf /var/cache/* || true
206-
207-
find ${{ github.workspace }} -name "*.o" -type f -delete || true
208-
find ${{ github.workspace }} -name "*.a" -type f -delete || true
209-
find ${{ github.workspace }} -name "*.la" -type f -delete || true
210-
find ${{ github.workspace }} -name "*.so" -type f -delete || true
211-
find ${{ github.workspace }} -name "*.pyc" -type f -delete || true
212-
213-
rm -rf ${{ github.workspace }}/.git || true
214-
215-
df -h
216-
217-
echo "Largest directories:"
218-
du -h --max-depth=2 / 2>/dev/null | sort -hr | head -20
173+
rm -rf /__w/pikiwidb/pikiwidb/buildtrees 2>/dev/null || true
174+
rm -rf /__w/pikiwidb/pikiwidb/deps 2>/dev/null || true
175+
find /__w/pikiwidb/pikiwidb -type f \( -name "librocksdb.a" -o -name "libprotoc.a" -o -name "libprotobuf.a" \) -delete 2>/dev/null || true
176+
find /__w/pikiwidb/pikiwidb -type f \( -name "*.o" -o -name "*.a" -o -name "*.la" -o -name "*.so" -o -name "*_test" \) ! -path "*/build/pika" -delete 2>/dev/null || true
177+
rm -rf /__w/pikiwidb/pikiwidb/.git 2>/dev/null || true
178+
df -h
219179
220180
- name: Create Log Directories
221181
run: |

0 commit comments

Comments
 (0)