File tree Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Expand file tree Collapse file tree 3 files changed +11
-10
lines changed Original file line number Diff line number Diff line change @@ -109,6 +109,14 @@ jobs:
109109 echo "$HOME/.cargo/bin" >> $GITHUB_PATH
110110 fi
111111
112+ # Free up disk space on Linux and Windows by removing preinstalled components that
113+ # we do not need. We do this to enable some of the less resource
114+ # intensive jobs to run on free runners, which however also have
115+ # less disk space.
116+ - name : free up disk space start
117+ run : src/ci/scripts/free-disk-space.sh start
118+ if : matrix.free_disk
119+
112120 - name : disable git crlf conversion
113121 run : git config --global core.autocrlf false
114122
@@ -123,14 +131,6 @@ jobs:
123131 echo "disk usage:"
124132 df -h
125133
126- # Free up disk space on Linux by removing preinstalled components that
127- # we do not need. We do this to enable some of the less resource
128- # intensive jobs to run on free runners, which however also have
129- # less disk space.
130- - name : free up disk space start
131- run : src/ci/scripts/free-disk-space.sh start
132- if : matrix.free_disk
133-
134134 # Rust Log Analyzer can't currently detect the PR number of a GitHub
135135 # Actions build on its own, so a hint in the log message is needed to
136136 # point it in the right direction.
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ AVAILABLE_INITIAL=$(getAvailableSpace)
250250
251251printDF " BEFORE CLEAN-UP:"
252252echo " "
253-
253+ exit 1
254254execAndMeasureSpaceChange cleanPackages " Unused packages"
255255execAndMeasureSpaceChange cleanDocker " Docker images"
256256execAndMeasureSpaceChange cleanSwap " Swap storage"
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ if [[ "$1" == "start" ]]; then
1212 $script_dir /free-disk-space-linux.sh & > $log &
1313 fi
1414elif [[ " $1 " == " report" ]]; then
15- exit_code=` wait`
15+ wait
16+ exit_code=$?
1617 cat $log
1718 exit $exit_code
1819else
You can’t perform that action at this time.
0 commit comments