From ea1a7c96239f8f189389b54c2beb87cedc1f7634 Mon Sep 17 00:00:00 2001 From: "Jason N." <33561705+JasonN3@users.noreply.github.com> Date: Tue, 20 Feb 2024 10:25:29 -0500 Subject: [PATCH] free up extra space --- action.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/action.yml b/action.yml index 4d73841..c08f1ee 100644 --- a/action.yml +++ b/action.yml @@ -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