Skip to content

Commit 3be2caa

Browse files
committed
WIP
1 parent 9d60c13 commit 3be2caa

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff 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.

src/ci/scripts/free-disk-space-linux.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ AVAILABLE_INITIAL=$(getAvailableSpace)
250250

251251
printDF "BEFORE CLEAN-UP:"
252252
echo ""
253-
253+
exit 1
254254
execAndMeasureSpaceChange cleanPackages "Unused packages"
255255
execAndMeasureSpaceChange cleanDocker "Docker images"
256256
execAndMeasureSpaceChange cleanSwap "Swap storage"

src/ci/scripts/free-disk-space.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ if [[ "$1" == "start" ]]; then
1212
$script_dir/free-disk-space-linux.sh &> $log &
1313
fi
1414
elif [[ "$1" == "report" ]]; then
15-
exit_code=`wait`
15+
wait
16+
exit_code=$?
1617
cat $log
1718
exit $exit_code
1819
else

0 commit comments

Comments
 (0)