Skip to content

Commit

Permalink
fix: See if we can squeeze out some more room
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs committed Mar 6, 2024
1 parent 3ea2863 commit f400186
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,13 +72,31 @@ jobs:
runs-on: ubuntu-latest
needs: collectInputs
steps:
- name: Largest packages
run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 40

# https://github.com/orgs/community/discussions/25678#discussioncomment-5242449
- name: Delete huge unnecessary tools folder
run: |
df -h
rm -rf /opt/hostedtoolcache/CodeQL
rm -rf /opt/hostedtoolcache/Java_Temurin-Hotspot_jdk
rm -rf /opt/hostedtoolcache/Ruby
rm -rf /opt/hostedtoolcache/go
# And a little bit more
sudo apt-get remove -y 'dotnet-runtime-.*'
sudo apt-get remove -y 'libclang-.*'
sudo apt-get remove -y 'libllvm.*'
sudo apt-get remove -y 'llvm-.*'
sudo apt-get remove -y 'mysql-.*'
sudo apt-get remove -y 'php.*'
sudo apt-get remove -y azure-cli google-cloud-sdk hhvm google-chrome-stable firefox powershell mono-devel
sudo apt-get autoremove -y
sudo apt-get clean
df -h
- name: Largest packages
run: dpkg-query -Wf '${Installed-Size}\t${Package}\n' | sort -n | tail -n 40

- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit f400186

Please sign in to comment.