fix(ci): opt into TCG for arm64 APK gate
This commit is contained in:
1 parent
b0ffb44f46
commit
f87fc85f33
2 files changed
+11
-6
No files matched your search
@@ -874,8 +874,11 @@ jobs:
|
||||
runs-on: macos-14
|
||||
# GitHub's hosted Apple Silicon runner does not expose Hypervisor.Framework
|
||||
# to the nested Android VM (HV_UNSUPPORTED). Keep the real arm64 image and
|
||||
# use software CPU emulation rather than weakening this to an x86 smoke.
|
||||
timeout-minutes: 90
|
||||
# explicitly opt into unsupported, slow TCG software CPU emulation rather
|
||||
# than weakening this to an x86 smoke.
|
||||
timeout-minutes: 120
|
||||
env:
|
||||
ANDROID_I_WANT_MY_TCG: "yes"
|
||||
steps:
|
||||
- name: Download all consumer Android APKs
|
||||
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
|
||||
@@ -885,16 +888,16 @@ jobs:
|
||||
merge-multiple: true
|
||||
|
||||
- name: Boot arm64 emulator, install and launch the game
|
||||
timeout-minutes: 85
|
||||
timeout-minutes: 115
|
||||
uses: reactivecircus/android-emulator-runner@a421e43855164a8197daf9d8d40fe71c6996bb0d # v2.38.0
|
||||
with:
|
||||
api-level: 30
|
||||
arch: arm64-v8a
|
||||
target: google_apis
|
||||
emulator-boot-timeout: 1200
|
||||
emulator-boot-timeout: 1800
|
||||
emulator-options: >-
|
||||
-no-window
|
||||
-gpu swiftshader_indirect
|
||||
-gpu swiftshader
|
||||
-no-snapshot
|
||||
-noaudio
|
||||
-no-boot-anim
|
||||
|
||||
@@ -30,7 +30,9 @@ class MobileSdkReleaseGateTests(unittest.TestCase):
|
||||
self.assertIn("pattern: android-apk-*", block)
|
||||
self.assertIn("merge-multiple: true", block)
|
||||
self.assertIn("arch: arm64-v8a", block)
|
||||
self.assertIn("emulator-boot-timeout: 1200", block)
|
||||
self.assertIn('ANDROID_I_WANT_MY_TCG: "yes"', block)
|
||||
self.assertIn("emulator-boot-timeout: 1800", block)
|
||||
self.assertIn("-gpu swiftshader", block)
|
||||
self.assertIn("-accel off", block)
|
||||
self.assertIn("for apk_file in apk/*.apk", block)
|
||||
self.assertIn("EVE_CI_GAME_OK", block)
|
||||
|
||||
Reference in new issue
Block a user