Add CI step that frees disk space on Linux.

It seems Cargo generates so much data that the CI will occasionally fail
due to running out of disk space. This change increases the available
disk space by 20GB.
This commit is contained in:
Sergio Benitez 2023-03-25 07:43:54 -07:00
parent 91f6288ea4
commit 9314352eef
1 changed files with 16 additions and 0 deletions

View File

@ -39,6 +39,22 @@ jobs:
- name: Checkout Sources
uses: actions/checkout@v2
- name: Free Disk Space
if: matrix.platform.name == 'Linux'
run: |
echo "Freeing up disk space on Linux CI"
df -h
sudo rm -rf /usr/share/dotnet/
sudo rm -rf /opt/ghc
sudo rm -rf /usr/local/share/boost
sudo rm -rf /usr/local/graalvm/
sudo rm -rf /usr/local/.ghcup/
sudo rm -rf /usr/local/share/powershell
sudo rm -rf /usr/local/share/chromium
sudo rm -rf /usr/local/lib/android
sudo rm -rf /usr/local/lib/node_modules
df -h
- name: Install Native Dependencies (macOS)
if: matrix.platform.name == 'macOS'
run: |