Use jlumbroso/free-disk-space to free space on the build node.

This commit is contained in:
Jocelyn Le Sage 2024-12-07 09:11:20 -05:00
parent ab4cc0e1e1
commit 9db4f58a14

View File

@ -23,23 +23,15 @@ jobs:
steps: steps:
- name: Free disk space - name: Free disk space
run: | uses: jlumbroso/free-disk-space@main
# Free disk space. with:
echo "::group::Before" tool-cache: true
df -h / android: true
echo "::endgroup::" dotnet: true
echo "::group::Removing unneeded softwares and files..." haskell: true
for DIR in /usr/local/lib/android /usr/share/dotnet /opt/ghc large-packages: true
do docker-images: true
if [ -d "$DIR" ]; then swap-storage: false
echo "Removing $DIR..."
sudo rm -r "$DIR"
fi
done
echo "::endgroup::"
echo "::group::After"
df -h /
echo "::endgroup::"
- name: Prepare - name: Prepare
id: prep id: prep