@@ -63,22 +63,27 @@ jobs:
6363 target : google_apis
6464 channel : canary # Necessary for ATDs
6565 arch : x86_64
66+ memory : 4096
6667 - api-level : 33 # Android 13
6768 target : google_apis
6869 channel : canary # Necessary for ATDs
6970 arch : x86_64
71+ memory : 4096
7072 - api-level : 35 # Android 15
7173 target : google_apis
7274 channel : canary # Necessary for ATDs
7375 arch : x86_64
76+ memory : 4096
7477 - api-level : 36 # Android 16
7578 target : google_apis
7679 channel : canary # Necessary for ATDs
7780 arch : x86_64
81+ memory : 4096
7882 - api-level : " 37.0" # Android 17; API 37 ships only as a minor-versioned image
7983 target : google_apis_ps16k # API 37 has no plain google_apis image
8084 channel : canary # Necessary for ATDs
8185 arch : x86_64
86+ memory : 8192
8287 steps :
8388 - name : Checkout code
8489 uses : actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
@@ -112,9 +117,9 @@ jobs:
112117 path : |
113118 ~/.android/avd/*
114119 ~/.android/adb*
115- # Keyed on the cmdline-tools version so AVDs created by the old, broken
116- # avdmanager are invalidated automatically.
117- key : avd-api-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}-tools${{ steps.cmdline-tools.outputs.version }}
120+ # Keyed on memory and the cmdline-tools version so incompatible snapshots
121+ # and AVDs created by the old, broken avdmanager are invalidated automatically.
122+ key : avd-api-${{ matrix.api-level }}-${{ matrix.arch }}-${{ matrix.target }}-memory${{ matrix.memory }}- tools${{ steps.cmdline-tools.outputs.version }}
118123
119124 - name : Create AVD and generate snapshot for caching
120125 if : steps.avd-cache.outputs.cache-hit != 'true'
@@ -127,7 +132,7 @@ jobs:
127132 force-avd-creation : false
128133 disable-animations : true
129134 disable-spellchecker : true
130- emulator-options : -memory 4096 -no-window -gpu auto -noaudio -no-boot-anim -camera-back none
135+ emulator-options : -memory ${{ matrix.memory }} -no-window -gpu auto -noaudio -no-boot-anim -camera-back none
131136 disk-size : 4096M
132137 script : echo "Generated AVD snapshot for caching."
133138
@@ -151,7 +156,7 @@ jobs:
151156 force-avd-creation : false
152157 disable-animations : true
153158 disable-spellchecker : true
154- emulator-options : -memory 4096 -no-window -gpu auto -noaudio -no-boot-anim -camera-back none -no-snapshot-save
159+ emulator-options : -memory ${{ matrix.memory }} -no-window -gpu auto -noaudio -no-boot-anim -camera-back none -no-snapshot-save
155160 script : |
156161 adb uninstall io.sentry.uitest.android.critical || echo "Already uninstalled (or not found)"
157162 adb install -r -d "${{env.APK_NAME}}"
0 commit comments