Skip to content

Commit cbfe4ec

Browse files
committed
Add disk free space reports to Python build
These builds are on a knife's edge currently with respect to disk space. I think it is worth logging `df` output so we can keep an eye on it. Signed-off-by: Tom Jakubowski <tom@prospective.dev>
1 parent 7e0734f commit cbfe4ec

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/build.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -220,11 +220,19 @@ jobs:
220220
arch: x86_64
221221

222222
steps:
223+
- name: Run df -h
224+
if: ${{ runner.os == 'Linux' }}
225+
run: df -h
226+
223227
- name: Free up disk space
224228
if: ${{ runner.os == 'Linux' }}
225229
run: |
226230
rm -rf /__t/*
227231
232+
- name: Run df -h
233+
if: ${{ runner.os == 'Linux' }}
234+
run: df -h
235+
228236
- name: Checkout
229237
uses: actions/checkout@v4
230238

@@ -237,6 +245,10 @@ jobs:
237245
name: perspective-metadata
238246
path: rust/
239247

248+
- name: Run df -h
249+
if: ${{ runner.os == 'Linux' }}
250+
run: df -h
251+
240252
- name: Initialize Build
241253
id: init-step
242254
uses: ./.github/actions/install-deps
@@ -246,6 +258,10 @@ jobs:
246258
manylinux: ${{ matrix.container && 'true' || 'false' }}
247259
skip_cache: ${{ steps.config-step.outputs.SKIP_CACHE }}
248260

261+
- name: Run df -h
262+
if: ${{ runner.os == 'Linux' }}
263+
run: df -h
264+
249265
- name: Python Build
250266
run: pnpm run build
251267
if: ${{ runner.os != 'Windows' }}
@@ -268,6 +284,10 @@ jobs:
268284
PSP_ARCH: ${{ matrix.arch }}
269285
PSP_BUILD_WHEEL: 1
270286

287+
- name: Run df -h
288+
if: ${{ runner.os == 'Linux' }}
289+
run: df -h
290+
271291
# Windows sucks lol
272292
- uses: actions/upload-artifact@v4
273293
if: ${{ runner.os == 'Windows' }}

0 commit comments

Comments
 (0)