Skip to content

Commit c46d50e

Browse files
Don't clean up build directory when building only Swift SDK
The build directory is used for e2e tests run after stdlib tests.
1 parent 6052b73 commit c46d50e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/build-toolchain.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,13 @@ jobs:
303303
if: ${{ matrix.run_stdlib_test && matrix.container != null }}
304304
run: |
305305
docker exec swiftwasm-ci-buildbot /bin/bash -lc \
306-
"./swiftwasm-build/schemes/${{ matrix.scheme }}/build/run-test.sh && rm -rf build"
306+
"./swiftwasm-build/schemes/${{ matrix.scheme }}/build/run-test.sh"
307+
308+
# We need this step to save disk space for the next steps when building toolchain
309+
- name: Cleanup build directory
310+
if: ${{ matrix.run_stdlib_test && matrix.container != null && !matrix.only_swift_sdk }}
311+
run: docker exec swiftwasm-ci-buildbot /bin/bash -lc "rm -rf build"
312+
307313
- name: Run stdlib tests for wasi-wasm32
308314
if: ${{ matrix.run_stdlib_test && matrix.container == null }}
309315
run: ./swiftwasm-build/schemes/${{ matrix.scheme }}/build/run-test.sh

0 commit comments

Comments
 (0)