Skip to content

Commit 9754869

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

File tree

1 file changed

+23
-1
lines changed

1 file changed

+23
-1
lines changed

.github/workflows/build.yml

Lines changed: 23 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,21 +170,33 @@ 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
178+
continue-on-error: true
176179
run: |
177180
make test-unit
178181
182+
- name: Check disk space (after unit tests)
183+
run: df -h /
184+
if: always()
185+
179186
- name: Run Integration Tests
187+
continue-on-error: true
180188
run: |
181189
make test-integration
182190
env:
183191
SPIN_CONFORMANCE_TESTS_DOCKER_OPT_OUT: true
184192
# Only run integration tests on macOS as they will be run on ubuntu separately
185193
if: ${{ matrix.runner == 'macos-14' }}
186194

195+
- name: Check disk space (after integration tests)
196+
run: df -h /
197+
if: always()
198+
199+
187200
all-integration-tests:
188201
# run on a larger runner for more SSD/resource access
189202
runs-on: ubuntu-22.04-4core-spin
@@ -302,6 +315,15 @@ jobs:
302315
with:
303316
openssl-windows: "${{ matrix.os == 'windows-latest' }}"
304317

318+
- name: Check disk space (before release build)
319+
run: df -h /
320+
if: always()
321+
305322
- name: build release
306323
shell: bash
324+
continue-on-error: true
307325
run: cargo build --release ${{ matrix.config.extraArgs }}
326+
327+
- name: Check disk space (after release build)
328+
run: df -h /
329+
if: always()

0 commit comments

Comments
 (0)