File tree Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Expand file tree Collapse file tree 3 files changed +10
-4
lines changed Original file line number Diff line number Diff line change @@ -128,7 +128,7 @@ jobs:
128128 # intensive jobs to run on free runners, which however also have
129129 # less disk space.
130130 - name : free up disk space
131- run : src/ci/scripts/free-disk-space.sh
131+ run : src/ci/scripts/free-disk-space.sh start
132132 if : matrix.free_disk
133133
134134 # Rust Log Analyzer can't currently detect the PR number of a GitHub
@@ -229,6 +229,10 @@ jobs:
229229 run : |
230230 cd src/ci/citool
231231 CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
232+
233+ - name : free up disk space
234+ run : src/ci/scripts/free-disk-space.sh report
235+ if : matrix.free_disk
232236
233237 - name : run the build
234238 run : |
Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ runners:
3232
3333 - &job-windows
3434 os : windows-2025
35+ free_disk : true
3536 << : *base-job
3637
3738 # NOTE: windows-2025 has less disk space available than windows-2022,
3839 # because the D drive is missing.
3940 - &job-windows-25
4041 os : windows-2025
42+ free_disk : true
4143 << : *base-job
4244
4345 - &job-windows-8c
Original file line number Diff line number Diff line change @@ -3,15 +3,15 @@ set -euo pipefail
33
44log=/tmp/free-disk-space.log
55
6- if [[ " $1 " == " start" ]]; then
6+ if [[ " $1 " == " start" ]]; then
77 # Run scripts in the background.
88 if [[ " ${RUNNER_OS:- } " == " Windows" ]]; then
99 pwsh free-disk-space-windows.ps1 & > $log &
1010 else
1111 free-disk-space-linux.sh & > $log &
1212 fi
13- elif [[ " $1 " == " report" ]]; then
14- exit_code=wait
13+ elif [[ " $1 " == " report" ]]; then
14+ exit_code=` wait`
1515 cat $log
1616 exit $exit_code
1717else
You can’t perform that action at this time.
0 commit comments