Skip to content

Commit 6fbe514

Browse files
Merge #7075: ci: free disk space by removing /output folder when it's no longer needed
3c6da38 ci: free disk space by removing `/output` folder when it's no longer needed (UdjinM6) Pull request description: ## Issue being fixed or feature implemented `/output` folder just sits there wasting disk space after `Build source` step: - multiprocess 0.6GB - ubsan 1.7GB - tsan 2.4GB - nowallet 2.6GB - arm-linux 2.7GB - linux64 and linux64_sqlite 3.3GB (NOTE: fuzz, mac and win64 don't produce anything in `/output` folder) ## What was done? Remove the folder at the end of `Build source` step. Also drop unused `BASE_OUTDIR` env var pointing to it from `Run unit tests` step to avoid confusion. ## How Has This Been Tested? https://github.com/UdjinM6/dash/actions/runs/20355332620 ## Breaking Changes n/a ## Checklist: - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [ ] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: kwvg: utACK 3c6da38 PastaPastaPasta: utACK 3c6da38 Tree-SHA512: 6cf26e4c2934dade8bc9c93bee649ceb113e67181690fee2c2be97700c4f840a87058dd527a734128929b16dc2168585ef2d6aadfafde2be286ff425e957db78
2 parents 05f0066 + 3c6da38 commit 6fbe514

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/build-src.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,8 @@ jobs:
9999
./ci/dash/build_src.sh
100100
ccache -X 9
101101
ccache -c
102+
du -hd0 "${BASE_OUTDIR}"
103+
rm -rf "${BASE_OUTDIR}"
102104
shell: bash
103105

104106
- name: Save ccache cache
@@ -121,7 +123,6 @@ jobs:
121123

122124
- name: Run unit tests
123125
run: |
124-
BASE_OUTDIR="/output"
125126
BUILD_TARGET="${{ inputs.build-target }}"
126127
source ./ci/dash/matrix.sh
127128
./ci/dash/test_unittests.sh

0 commit comments

Comments
 (0)