Merge pull request #5917 from kralo/android-ci-lockfile

ci: android delete AVD lockfile when running from cached image
This commit is contained in:
Daniel Hofstetter 2024-01-30 16:00:33 +01:00 committed by GitHub
commit 9bd531b0e3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -42,6 +42,12 @@ jobs:
~/.android/adb*
~/__rustc_hash__
key: avd-${{ matrix.api-level }}-${{ matrix.arch }}+termux-${{ env.TERMUX }}+nextest+rustc-hash
- name: Delete AVD Lockfile when run from cache
if: steps.avd-cache.outputs.cache-hit == 'true'
run: |
rm -f \
~/.android/avd/*.avd/*.lock \
~/.android/avd/*/*.lock
- name: Create and cache emulator image
if: steps.avd-cache.outputs.cache-hit != 'true'
uses: reactivecircus/android-emulator-runner@v2