Skip to content

Commit 7f61b4f

Browse files
committed
ci: free more space in ubuntu 24 free runners
1 parent c3d7fbe commit 7f61b4f

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

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

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ set -euo pipefail
99
# - Check that there are no big packages preinstalled that we aren't using
1010
# - Check that all directores we are removing are still present (look at the warnings)
1111

12+
# Print a line of the specified character.
1213
printSeparationLine() {
1314
for ((i = 0; i < 80; i++)); do
1415
printf "%s" "$1"
@@ -231,8 +232,11 @@ main() {
231232
printDF "BEFORE CLEAN-UP:"
232233

233234
execAndMeasure "Unused packages" cleanPackages
234-
execAndMeasure "Node modules" removeNodeModules
235-
execAndMeasure "Python Packages" removePythonPackages
235+
execAndMeasure "Unused Python Packages" removePythonPackages
236+
if isX86; then
237+
# On ARM, `npm uninstall` fails with a segmentation fault.
238+
execAndMeasure "Unused Node modules" removeNodeModules
239+
fi
236240
removeUnusedDirsAndFiles
237241

238242
# Output saved space statistic

0 commit comments

Comments
 (0)