Skip to content

Commit f7e933a

Browse files
committed
Try to delete
1 parent d78ea71 commit f7e933a

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Disk cleanup
2+
description: Clean up disk space by removing unnecessary files
3+
runs:
4+
using: 'composite'
5+
steps:
6+
- name: Clean up unnecessary files
7+
shell: bash
8+
run: |
9+
# Remove .NET SDKs
10+
sudo rm -rf /usr/share/dotnet
11+
12+
# Remove Swift toolchain
13+
sudo rm -rf /usr/share/swift
14+
15+
# Remove Haskell (GHC)
16+
sudo rm -rf /usr/local/.ghcup
17+
18+
# Remove Julia
19+
sudo rm -rf /usr/local/julia*
20+
21+
# Remove Chromium (optional if not using for browser tests)
22+
sudo rm -rf /usr/local/share/chromium
23+
24+
# Remove Microsoft/Edge and Google Chrome builds
25+
sudo rm -rf /opt/microsoft /opt/google
26+
27+
# Remove Azure CLI
28+
sudo rm -rf /opt/az
29+
30+
# Remove PowerShell
31+
sudo rm -rf /usr/local/share/powershell
32+
33+
# Remove CodeQL and other toolcaches
34+
sudo rm -rf /opt/hostedtoolcache

.github/workflows/build-android.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,12 @@ jobs:
3434
with:
3535
fetch-depth: 1
3636

37+
- name: Show disk usage
38+
uses: ./.github/actions/disk-usage
39+
40+
- name: Cleanup disk
41+
uses: ./.github/actions/cleanup-disk
42+
3743
- name: Setup Gradle environment
3844
uses: ./.github/actions/setup-gradle
3945
with:

0 commit comments

Comments
 (0)