Skip to content

Commit

Permalink
updated actions/clean-up-ubuntu
Browse files Browse the repository at this point in the history
  • Loading branch information
petronny committed Apr 1, 2024
1 parent 759c536 commit 311fcba
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions actions/clean-up-ubuntu/action.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Remove unwanted software in ubuntu-lastest"
name: "Remove unwanted software in ubuntu-latest"
inputs:
root:
description: 'root where ubuntu is mounted'
Expand All @@ -11,9 +11,7 @@ runs:
run: |
df -h
cd ${{ inputs.root }}
arch-chroot /ubuntu apt-get autoremove -y \
arch-chroot ${{ inputs.root }} apt-get autoremove -y \
gcc g++ gcc-{9,10,11,12,13} g++-{9,10,11,12,13} \
llvm-{13,14,15} clang-{13,14,15} clang-format-{13,14,15} \
dotnet-sdk-{6,7,8}.0 mono-complete \
Expand All @@ -23,9 +21,17 @@ runs:
google-cloud-cli azure-cli \
microsoft-edge-stable google-chrome-stable firefox
arch-chroot /ubuntu dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n
cd ${{ inputs.root }}
du -csh usr/local/lib/android opt/hostedtoolcache/CodeQL
rm -rf usr/local/lib/android opt/hostedtoolcache/CodeQL
for i in usr/local/lib/android opt/hostedtoolcache/CodeQL
do
[ ! -d $i ] && continue
du -sh $i
rm -r $i
done
df -h
- uses: webiny/[email protected]
with:
run: sh -c "arch-chroot ${{ inputs.root }} dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n"

0 comments on commit 311fcba

Please sign in to comment.