Skip to content

Commit 1533c03

Browse files
authored
Add more disk space to emulator on CI (#6213)
* Remove AVD caching since it doesn't speed up the build and waste space
1 parent f1df6b5 commit 1533c03

1 file changed

Lines changed: 1 addition & 27 deletions

File tree

.github/workflows/pr.yml

Lines changed: 1 addition & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -297,40 +297,14 @@ jobs:
297297
sudo udevadm trigger --name-match=kvm
298298
ls /dev/kvm
299299
300-
- name: AVD cache
301-
uses: actions/cache@9255dc7a253b0ccc959486e2bca901246202afeb # v5.0.1
302-
id: avd-cache
303-
with:
304-
path: |
305-
~/.android/avd/*
306-
~/.android/adb*
307-
key: avd-${{ matrix.configuration.target }}-${{ matrix.configuration.api-level }}
308-
309-
- name: Create AVD and generate snapshot for caching
310-
if: steps.avd-cache.outputs.cache-hit != 'true'
311-
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
312-
with:
313-
api-level: ${{ matrix.configuration.api-level }}
314-
arch: ${{ matrix.configuration.arch }}
315-
force-avd-creation: false
316-
disable-animations: true
317-
disk-size: 1G # We need to ensure that there is enough space for the emulator to run. If not we get 'Failed to commit install' errors.
318-
heap-size: 1G
319-
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
320-
profile: ${{ matrix.configuration.profile }}
321-
target: ${{ matrix.configuration.target }}
322-
system-image-api-level: ${{ matrix.configuration.system-image-api-level }}
323-
script: |
324-
echo "Generated AVD snapshot for caching."
325-
326300
- name: Build projects and run instrumentation tests
327301
uses: reactivecircus/android-emulator-runner@b530d96654c385303d652368551fb075bc2f0b6b # v2.35.0
328302
with:
329303
api-level: ${{ matrix.configuration.api-level }}
330304
arch: ${{ matrix.configuration.arch }}
331305
force-avd-creation: false
332306
disable-animations: true
333-
disk-size: 1G
307+
disk-size: 2G # We need to ensure that there is enough space for the emulator to run. If not we get 'Failed to commit install' errors.
334308
heap-size: 1G
335309
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
336310
profile: ${{ matrix.configuration.profile }}

0 commit comments

Comments
 (0)