File tree Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Expand file tree Collapse file tree 4 files changed +14
-7
lines changed Original file line number Diff line number Diff line change @@ -127,8 +127,8 @@ jobs:
127
127
# we do not need. We do this to enable some of the less resource
128
128
# intensive jobs to run on free runners, which however also have
129
129
# less disk space.
130
- - name : free up disk space
131
- run : src/ci/scripts/free-disk-space.sh
130
+ - name : free up disk space start
131
+ run : src/ci/scripts/free-disk-space.sh start
132
132
if : matrix.free_disk
133
133
134
134
# Rust Log Analyzer can't currently detect the PR number of a GitHub
@@ -229,6 +229,10 @@ jobs:
229
229
run : |
230
230
cd src/ci/citool
231
231
CARGO_INCREMENTAL=0 CARGO_TARGET_DIR=../../../build/citool cargo build
232
+
233
+ - name : free up disk space report
234
+ run : src/ci/scripts/free-disk-space.sh report
235
+ if : matrix.free_disk
232
236
233
237
- name : run the build
234
238
run : |
Original file line number Diff line number Diff line change @@ -32,12 +32,14 @@ runners:
32
32
33
33
- &job-windows
34
34
os : windows-2025
35
+ free_disk : true
35
36
<< : *base-job
36
37
37
38
# NOTE: windows-2025 has less disk space available than windows-2022,
38
39
# because the D drive is missing.
39
40
- &job-windows-25
40
41
os : windows-2025
42
+ free_disk : true
41
43
<< : *base-job
42
44
43
45
- &job-windows-8c
Original file line number Diff line number Diff line change 1
1
#! /bin/bash
2
2
set -euo pipefail
3
3
4
+ script_dir=$( dirname " $0 " )
4
5
log=/tmp/free-disk-space.log
5
6
6
- if [[ " $1 " == " start" ]]; then
7
+ if [[ " $1 " == " start" ]]; then
7
8
# Run scripts in the background.
8
9
if [[ " ${RUNNER_OS:- } " == " Windows" ]]; then
9
- pwsh free-disk-space-windows.ps1 & > $log &
10
+ pwsh $script_dir / free-disk-space-windows.ps1 & > $log &
10
11
else
11
- free-disk-space-linux.sh & > $log &
12
+ $script_dir / free-disk-space-linux.sh & > $log &
12
13
fi
13
- elif [[ " $1 " == " report" ]]; then
14
- exit_code=wait
14
+ elif [[ " $1 " == " report" ]]; then
15
+ exit_code=` wait`
15
16
cat $log
16
17
exit $exit_code
17
18
else
You can’t perform that action at this time.
0 commit comments