@@ -112,33 +112,33 @@ jobs:
112112 ~/.gradle/wrapper
113113 key : gradle-${{ runner.os }}-${{ hashFiles('**/*.gradle*') }}-${{ hashFiles('**/gradle/wrapper/gradle-wrapper.properties') }}-${{ hashFiles('**/buildSrc/**/*.kt') }}
114114
115- # - name: AVD cache
116- # uses: actions/cache@v4
117- # id: avd-cache
118- # with:
119- # path: |
120- # ~/.android/avd/*
121- # ~/.android/adb*
122- # key: avd-${{ matrix.api-level }}-${{matrix.profile}}
123-
124- # - name: create AVD and generate snapshot for caching
125- # if: steps.avd-cache.outputs.cache-hit != 'true'
126- # uses: reactivecircus/android-emulator-runner@v2
127- # with:
128- # api-level: ${{ matrix.api-level }}
129- # profile: ${{matrix.profile}}
130- # avd-name: Pixel_3a_API_30
131- # target: default
132- # force-avd-creation: false
133- # emulator-options: >
134- # -no-window
135- # -gpu swiftshader_indirect
136- # -noaudio
137- # -no-boot-anim
138- # -camera-back none
139- # -accel off
140- # disable-animations: false
141- # script: echo "Generated AVD snapshot for caching."
115+ - name : AVD cache
116+ uses : actions/cache@v4
117+ id : avd-cache
118+ with :
119+ path : |
120+ ~/.android/avd/*
121+ ~/.android/adb*
122+ key : avd-${{ matrix.api-level }}-${{matrix.profile}}
123+
124+ - name : create AVD and generate snapshot for caching
125+ if : steps.avd-cache.outputs.cache-hit != 'true'
126+ uses : reactivecircus/android-emulator-runner@v2
127+ with :
128+ api-level : ${{ matrix.api-level }}
129+ profile : ${{matrix.profile}}
130+ avd-name : Pixel_3a_API_30
131+ target : default
132+ force-avd-creation : false
133+ emulator-options : >
134+ -no-window
135+ -gpu swiftshader_indirect
136+ -noaudio
137+ -no-boot-anim
138+ -camera-back none
139+ -accel off
140+ disable-animations : false
141+ script : echo "Generated AVD snapshot for caching."
142142
143143 # Workaround for corepack enable in node
144144 # Source: (https://github.com/actions/setup-node/issues/899#issuecomment-1828798029)
@@ -176,12 +176,7 @@ jobs:
176176 -noaudio
177177 -no-boot-anim
178178 -camera-back none
179- -wipe-data
180- -no-snapshot-load
181- -no-snapshot-save
179+ -accel off
182180 disable-animations : true
183181 script : |
184- export CI=true
185- export DETOX_CONFIGURATION=android.att.debug
186- export DETOX_DISABLE_PERMISSIONS=1
187182 yarn e2e test:android
0 commit comments