Skip to content

Commit 3f321c8

Browse files
committed
chore: optimize AVD setup by removing unnecessary packages and cleaning up disk space
1 parent 1a1323c commit 3f321c8

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/android.yaml

Lines changed: 8 additions & 4 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
@@ -81,10 +89,6 @@ jobs:
8189
~/.android/avd/*
8290
~/.android/adb*
8391
key: avd-${{ runner.os }}
84-
- name: Remove cached AVD
85-
run: |
86-
rm -rf ~/.android/avd
87-
rm -f ~/.android/adb*
8892
- name: Start AVD then run E2E tests
8993
uses: reactivecircus/android-emulator-runner@v2
9094
with:

0 commit comments

Comments
 (0)