Skip to content

Commit 906d703

Browse files
authored
ci: clear unused large packages and libraries to free up space for AVD (#17871)
* CI: clear cached AVD and adb files before starting emulator * chore: optimize AVD setup by removing unnecessary packages and cleaning up disk space * chore: enhance AVD setup by adding disk space cleanup for fdc step * ci(fdc): dump dataconnect emulator log on failure * chore(fdc): remove dataconnect log dump
1 parent e54252c commit 906d703

File tree

2 files changed

+16
-1
lines changed

2 files changed

+16
-1
lines changed

.github/workflows/android.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,14 @@ jobs:
7373
sudo udevadm trigger --name-match=kvm
7474
- name: Gradle cache
7575
uses: gradle/actions/setup-gradle@v4
76+
- name: Free Disk Space (Ubuntu)
77+
uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793
78+
with:
79+
remove-dotnet: true
80+
remove-haskell: true
81+
remove-codeql: true
82+
remove-docker-images: true
83+
remove-large-packages: true
7684
- name: AVD cache
7785
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
7886
id: avd-cache

.github/workflows/e2e_tests_fdc.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,14 @@ jobs:
7171
sudo udevadm trigger --name-match=kvm
7272
- name: Gradle cache
7373
uses: gradle/actions/setup-gradle@v4
74+
- name: Free Disk Space (Ubuntu)
75+
uses: AdityaGarg8/remove-unwanted-software@90e01b21170618765a73370fcc3abbd1684a7793
76+
with:
77+
remove-dotnet: true
78+
remove-haskell: true
79+
remove-codeql: true
80+
remove-docker-images: true
81+
remove-large-packages: true
7482
- name: AVD cache
7583
uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57
7684
id: avd-cache
@@ -229,4 +237,3 @@ jobs:
229237
exit 1
230238
fi
231239
shell: bash
232-

0 commit comments

Comments
 (0)