Skip to content

Commit 384f7f2

Browse files
[copilot] free up disk space by removing pre-installed Android SDK (#10629)
Context: #10629 The Copilot GitHub Actions runner was running out of disk space with 76% used (54G/72G) after checkout, leaving only 18GB free for builds. Changes: - Remove `/usr/local/lib/android` before checkout (~12GB pre-installed SDK/NDK) - Add `fetch-depth: 1` for shallow clones of main repo and submodules Results: - Disk usage after checkout: 59% (42G/72G) with 30GB free - Saved 12GB total, providing sufficient space for build operations - Build caches already redirected to /mnt (66GB available) via #10610
1 parent 3577f05 commit 384f7f2

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/copilot-setup-steps.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ jobs:
1515
NUGET_SCRATCH: /mnt/nuget/scratch
1616

1717
steps:
18+
- name: Free up disk space
19+
run: |
20+
# Remove pre-installed Android SDK/NDK (~10GB) since we download our own specific versions
21+
sudo rm -rf /usr/local/lib/android
22+
1823
- name: Checkout repository
1924
uses: actions/checkout@v4
2025
with:
2126
submodules: recursive
27+
fetch-depth: 1
2228

2329
- name: Log disk space (after checkout)
2430
uses: ./.github/workflows/log-disk-space

0 commit comments

Comments
 (0)