Skip to content

Commit

Permalink
Update build-images.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminhuth authored Oct 2, 2023
1 parent 90712c3 commit 3318623
Showing 1 changed file with 18 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,25 @@ jobs:

- name: Check size of packages
run: |
echo "Listing 100 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 100
df -h
echo "Listing 25 largest packages"
dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 25
echo "Removing large packages"
sudo apt-get remove -y '^dotnet-.*'
sudo apt-get remove -y '^llvm-.*'
sudo apt-get remove -y '^libllvm-.*'
sudo apt-get remove -y azure-cli
sudo apt-get remove -y google-cloud-cli
sudo apt-get remove -y google-chrome-stable
sudo apt-get remove -y firefox
sudo apt-get remove -y powershell
sudo apt-get remove -y mono-devel
sudo apt-get remove -y '^temurin.*'
sudo apt-get autoremove -y
sudo apt-get clean
rm -rf /usr/share/dotnet/
df -h
- name: Prepare
id: prep
Expand Down

0 comments on commit 3318623

Please sign in to comment.