Skip to content

Commit

Permalink
Clean up unneeded packages on runner
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas committed Mar 30, 2024
1 parent 5cefabd commit b20dae2
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,29 @@ jobs:
rm -rf buildroot/dl*
rm -rf buildroot-ccache*
- name: Clear storage space
run: |
# Miscellaneous chunky packages
sudo apt remove -y 'dotnet*' 'temurin*' '*llvm*' '*libclang*' '*mono*' \
'google-cloud-cli' 'azure-cli' 'powershell' 'msbuild' \
'microsoft-edge-stable' 'google-chrome-stable' 'firefox' 'nginx-core' \
'*gcc-10*' '*gcc-11*' '*gcc-12*' '*g++*' '*gfortran*' '*cpp*'
sudo apt autoremove
dpkg --list |grep "^rc" | cut -d " " -f 3 | xargs sudo dpkg --purge
# 8.4G: Contains a bunch of cached tools (none of which we use)
sudo rm -rf /opt/hostedtoolcache
# 10.1G: Android and javascript
sudo rm -rf /usr/local/lib/{android,node_modules}
# 1.9G: Powrshell documentation??
sudo rm -rf /usr/local/share/powershell
# Install build dependencies
- name: Install dependencies
run: sudo apt-get update && sudo apt-get install -y cpio rsync bc makeself
run: sudo apt-get update && sudo apt-get install -y cpio rsync bc makeself gcc

# Restore build and download caches. We key these based on timestamps and build
# target, since these essentially "accumulate" useful information (such as source
Expand Down

0 comments on commit b20dae2

Please sign in to comment.