free up extra space
This commit is contained in:
parent
fe7443ffcc
commit
ea1a7c9623
19
action.yml
19
action.yml
|
@ -41,6 +41,25 @@ inputs:
|
||||||
runs:
|
runs:
|
||||||
using: composite
|
using: composite
|
||||||
steps:
|
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
|
- name: Install make and git
|
||||||
shell: bash
|
shell: bash
|
||||||
run: dnf install -y make git
|
run: dnf install -y make git
|
||||||
|
|
Loading…
Reference in New Issue