Skip to content

Commit bed4130

Browse files
committed
test
1 parent 138649e commit bed4130

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/pr.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,6 +116,29 @@ jobs:
116116
steps:
117117
- name: Initialize environment
118118
uses: angular/dev-infra/github-actions/npm/checkout-and-setup-node@854a5073df0fbdb0ea42232ba84b28d64014c56c
119+
- name: Aggressive Cleanup
120+
# Note: Use this only AFTER you are sure your project doesn't need these tools
121+
run: |
122+
echo "Current disk usage:"
123+
df -h
124+
echo "Removing large pre-installed tools..."
125+
# Remove Android SDKs (~6-12 GB)
126+
sudo rm -rf /usr/local/lib/android
127+
# Remove .NET SDKs and runtime (~1.5-2 GB)
128+
sudo rm -rf /usr/share/dotnet
129+
# Remove Java/JDKs (~1.5 GB)
130+
sudo rm -rf /usr/lib/jvm
131+
# Remove Haskell (GHC) (~3 GB)
132+
sudo rm -rf /usr/local/.ghcup
133+
# Remove CodeQL bundles (~2-3 GB)
134+
sudo rm -rf /opt/hostedtoolcache/CodeQL
135+
136+
# Clean up apt/package manager cache
137+
sudo apt-get autoremove -y
138+
sudo apt-get clean
139+
140+
echo "Current disk usage:"
141+
df -h
119142
- name: Install node modules
120143
run: pnpm install --frozen-lockfile
121144
- name: Setup Bazel

0 commit comments

Comments
 (0)