Skip to content

Commit 75ef2f6

Browse files
authored
CI: Blast a bit more when running purge job (#271)
* CI: Blast a bit more when running #### Problem The Rust legacy job is failing due to running out of disk space. #### Summary of changes Remove large packages too before the run * Actually, just use apt-get * Combine apt-get calls * Add back llvm for rocksdb build
1 parent bfa304d commit 75ef2f6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/actions/setup/action.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ runs:
5050
sudo rm -rf /usr/share/az_*
5151
sudo rm -rf /usr/share/postgresql-common
5252
sudo rm -rf /opt/ghc
53+
sudo rm -rf /usr/local/.ghcup
5354
sudo rm -rf /opt/az
5455
sudo rm -rf /opt/pipx
5556
sudo rm -rf /opt/microsoft
@@ -60,6 +61,16 @@ runs:
6061
sudo rm -rf /imagegeneration
6162
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
6263
sudo docker image prune --all --force
64+
# This packages aren't that big, ~500MB total
65+
#sudo apt-get remove -y '^php.*' --fix-missing
66+
#sudo apt-get remove -y '^dotnet-.*' --fix-missing
67+
#sudo apt-get remove -y '^mongodb-.*' --fix-missing
68+
#sudo apt-get remove -y '^mysql-.*' --fix-missing
69+
sudo apt-get remove -y '^aspnetcore-.*' azure-cli google-chrome-stable firefox powershell mono-devel libgl1-mesa-dri google-cloud-cli --fix-missing
70+
sudo apt-get autoremove -y
71+
sudo apt-get clean
72+
#sudo swapoff -a
73+
#sudo rm -f /mnt/swapfile
6374
6475
- name: Install Dependencies
6576
run: pnpm install --frozen-lockfile

0 commit comments

Comments
 (0)