Skip to content

Commit dbe8a71

Browse files
committed
More disk space logging in build workflow
Signed-off-by: itowlson <[email protected]>
1 parent b827629 commit dbe8a71

File tree

1 file changed

+20
-1
lines changed

1 file changed

+20
-1
lines changed

.github/workflows/build.yml

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,6 +158,7 @@ jobs:
158158

159159
- name: Check disk space (Before)
160160
run: df -h /
161+
if: always()
161162

162163
# Clear space on macOS runner which is prone to running out of space
163164
- name: Free disk space
@@ -169,13 +170,18 @@ jobs:
169170
continue-on-error: true
170171
if: ${{ matrix.runner == 'macos-14' }}
171172

172-
- name: Check disk space (After)
173+
- name: Check disk space (after MacOS freeing)
173174
run: df -h /
175+
if: always()
174176

175177
- name: Run Unit Tests
176178
run: |
177179
make test-unit
178180
181+
- name: Check disk space (after unit tests)
182+
run: df -h /
183+
if: always()
184+
179185
- name: Run Integration Tests
180186
run: |
181187
make test-integration
@@ -184,6 +190,11 @@ jobs:
184190
# Only run integration tests on macOS as they will be run on ubuntu separately
185191
if: ${{ matrix.runner == 'macos-14' }}
186192

193+
- name: Check disk space (after integration tests)
194+
run: df -h /
195+
if: always()
196+
197+
187198
all-integration-tests:
188199
# run on a larger runner for more SSD/resource access
189200
runs-on: ubuntu-22.04-4core-spin
@@ -302,6 +313,14 @@ jobs:
302313
with:
303314
openssl-windows: "${{ matrix.os == 'windows-latest' }}"
304315

316+
- name: Check disk space (before release build)
317+
run: df -h /
318+
if: always()
319+
305320
- name: build release
306321
shell: bash
307322
run: cargo build --release ${{ matrix.config.extraArgs }}
323+
324+
- name: Check disk space (after release build)
325+
run: df -h /
326+
if: always()

0 commit comments

Comments
 (0)