Skip to content

Commit

Permalink
Fix "no space left on device" in CI (#434)
Browse files Browse the repository at this point in the history
  • Loading branch information
grg-haas authored Mar 30, 2024
1 parent 5cefabd commit 1c27df1
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,25 @@ 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'
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
Expand Down

0 comments on commit 1c27df1

Please sign in to comment.