Skip to content

Commit 898af7f

Browse files
committed
Use perl?
1 parent 0852749 commit 898af7f

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

.github/workflows/ci-meson.yml

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,19 @@ jobs:
3333

3434
steps:
3535
- name: Maximize build disk space
36+
shell: bash -l {0}
3637
run: |
37-
echo "Removing dotnet..."
38-
sudo rm -rf /usr/share/dotnet
39-
echo "Removing android..."
40-
sudo rm -rf /usr/local/lib/android
41-
echo "Removing ghc..."
42-
sudo rm -rf /opt/ghc
43-
echo "Removing codeql..."
44-
sudo rm -rf /opt/hostedtoolcache/CodeQL
45-
echo "... done"
38+
for x in /usr/share/dotnet /usr/local/lib/android /opt/ghc /opt/hostedtoolcache/CodeQL; do
39+
echo "Removing $x..."
40+
cd "$x"
41+
perl -e 'for(<*>){((stat)[9]<(unlink))}' # https://unix.stackexchange.com/a/79656/
42+
echo "... done"
43+
df
44+
done
45+
echo "Removed all"
4646
df
4747
48+
4849
- uses: actions/checkout@v4
4950

5051
- name: Merge CI fixes from sagemath/sage

0 commit comments

Comments
 (0)