From 9e78b8b188f23616b90542d2fc1f3b8c13881066 Mon Sep 17 00:00:00 2001 From: kralo Date: Tue, 30 Jan 2024 09:31:17 +0100 Subject: [PATCH] ci: android delete AVD lockfile when running from cached image --- .github/workflows/android.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 86b5a89e8..c3f777081 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -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