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:
124
124
path : |
125
125
~/.gradle/caches
126
126
~/.gradle/wrapper
127
- key : ${{ steps.restore- gradle-cache.outputs.cache-primary-key }}
127
+ key : gradle-cache-jqnvfzw6w7-${{ github.run_id }}
128
128
129
129
- name : Enable KVM group permissions for Android Emulator
130
130
run : |
@@ -146,15 +146,15 @@ jobs:
146
146
avd-cache-zhdsn586je-api${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}-
147
147
148
148
- 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 == ' '
150
150
uses : reactivecircus/android-emulator-runner@62dbb605bba737720e10b196cb4220d374026a6d # v2.33.0
151
151
with :
152
152
api-level : ${{ env.FDC_ANDROID_EMULATOR_API_LEVEL }}
153
153
arch : x86_64
154
154
force-avd-creation : false
155
155
emulator-options : -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
156
156
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 }}" '
158
158
159
159
- name : Save AVD cache
160
160
uses : actions/cache/save@d4323d4df104b026a6aa633fdb11d772146be0bf # 4.2.2
@@ -163,7 +163,7 @@ jobs:
163
163
path : |
164
164
~/.android/avd/*
165
165
~/.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 }}
167
167
168
168
- name : Data Connect Emulator
169
169
run : |
You can’t perform that action at this time.
0 commit comments