Skip to content
This repository has been archived by the owner on Apr 22, 2024. It is now read-only.

Commit

Permalink
free up extra space
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonN3 committed Feb 20, 2024
1 parent fe7443f commit ea1a7c9
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,25 @@ inputs:
runs:
using: composite
steps:
- name: Cleanup host
shell: bash
run: |
if [[ -d /host ]]
then
df -h /host
# Remove Android Library
rm -Rf /host/usr/local/lib/android
# Remove .NET runtime
rm -Rf /host/usr/share/dotnet
# Remove Haskell runtime
rm -rf /host/opt/ghc
rm -rf /host/usr/local/.ghcup
chroot /host docker image prune --all --force
df -h /host
else
echo "Host must be mounted as /host in order to make more space"
fi
- name: Install make and git
shell: bash
run: dnf install -y make git
Expand Down

0 comments on commit ea1a7c9

Please sign in to comment.