Skip to content

Commit 43eb269

Browse files
committed
Use jlumbroso/free-disk-space to free space on the build node.
1 parent a57731b commit 43eb269

File tree

1 file changed

+9
-17
lines changed

1 file changed

+9
-17
lines changed

.github/workflows/build-image.yml

+9-17
Original file line numberDiff line numberDiff line change
@@ -23,23 +23,15 @@ jobs:
2323

2424
steps:
2525
- name: Free disk space
26-
run: |
27-
# Free disk space.
28-
echo "::group::Before"
29-
df -h /
30-
echo "::endgroup::"
31-
echo "::group::Removing unneeded softwares and files..."
32-
for DIR in /usr/local/lib/android /usr/share/dotnet /opt/ghc
33-
do
34-
if [ -d "$DIR" ]; then
35-
echo "Removing $DIR..."
36-
sudo rm -r "$DIR"
37-
fi
38-
done
39-
echo "::endgroup::"
40-
echo "::group::After"
41-
df -h /
42-
echo "::endgroup::"
26+
uses: jlumbroso/free-disk-space@main
27+
with:
28+
tool-cache: true
29+
android: true
30+
dotnet: true
31+
haskell: true
32+
large-packages: true
33+
docker-images: true
34+
swap-storage: false
4335

4436
- name: Prepare
4537
id: prep

0 commit comments

Comments
 (0)