Skip to content

Commit

Permalink
Use jlumbroso/free-disk-space to free space on the build node.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Dec 7, 2024
1 parent 04defcc commit 81573ab
Showing 1 changed file with 9 additions and 17 deletions.
26 changes: 9 additions & 17 deletions .github/workflows/build-image.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,23 +25,15 @@ jobs:

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

- name: Prepare
id: prep
Expand Down

0 comments on commit 81573ab

Please sign in to comment.