File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124124 path : |
125125 ~/.gradle/caches
126126 ~/.gradle/wrapper
127- key : ${{ steps.restore- gradle-cache.outputs.cache-primary-key }}
127+ key : gradle-cache-jqnvfzw6w7-${{ github.run_id }}
128128
129129 - name : Enable KVM group permissions for Android Emulator
130130 run : |
@@ -146,15 +146,15 @@ jobs:
146146 avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
147147
148148 - name : Create AVD
149- if : github.event_name == 'schedule' || steps.restore-avd-cache.outputs.cache-hit != 'true '
149+ if : github.event_name == 'schedule' || steps.restore-avd-cache.outputs.cache-matched-key == ' '
150150 uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
151151 with :
152152 api-level : ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
153153 arch : x86_64
154154 force-avd-creation : false
155155 emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
156156 disable-animations : true
157- script : echo "Generated AVD snapshot for caching."
157+ script : ' echo "Generated AVD snapshot for caching; event_name=${{ github.event_name }}, cache-matched-key=${{ steps.restore-avd-cache.outputs.cache-matched-key }}" '
158158
159159 - name : Save AVD cache
160160 uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
@@ -163,7 +163,7 @@ jobs:
163163 path : |
164164 ~/.android/avd/*
165165 ~/.android/adb*
166- key : ${{ steps.restore-avd-cache.outputs.cache-primary-key }}
166+ key : avd-cache-zhdsn586je-api ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-${{ github.run_id }}
167167
168168 - name : Data Connect Emulator
169169 run : |
You can’t perform that action at this time.
0 commit comments