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:
109
109
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
110
110
fi
111
111
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
+
112
120
- name : disable git crlf conversion
113
121
run : git config --global core.autocrlf false
114
122
@@ -123,14 +131,6 @@ jobs:
123
131
echo "disk usage:"
124
132
df -h
125
133
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
-
134
134
# Rust Log Analyzer can't currently detect the PR number of a GitHub
135
135
# Actions build on its own, so a hint in the log message is needed to
136
136
# point it in the right direction.
Original file line number Diff line number Diff line change @@ -250,7 +250,7 @@ AVAILABLE_INITIAL=$(getAvailableSpace)
250
250
251
251
printDF " BEFORE CLEAN-UP:"
252
252
echo " "
253
-
253
+ exit 1
254
254
execAndMeasureSpaceChange cleanPackages " Unused packages"
255
255
execAndMeasureSpaceChange cleanDocker " Docker images"
256
256
execAndMeasureSpaceChange cleanSwap " Swap storage"
Original file line number Diff line number Diff line change @@ -12,7 +12,8 @@ if [[ "$1" == "start" ]]; then
12
12
$script_dir /free-disk-space-linux.sh & > $log &
13
13
fi
14
14
elif [[ " $1 " == " report" ]]; then
15
- exit_code=` wait`
15
+ wait
16
+ exit_code=$?
16
17
cat $log
17
18
exit $exit_code
18
19
else
You can’t perform that action at this time.
0 commit comments