Promote using ubuntu runner with KVM. (#366)

This commit is contained in:
Yang
2024-01-19 17:38:35 +11:00
committed by GitHub
parent 677db68893
commit c479bb6c0f
7 changed files with 70 additions and 26 deletions
+1 -1
View File
@@ -65,7 +65,7 @@ function launchEmulator(apiLevel, target, arch, profile, cores, ramSize, heapSiz
if (diskSize) {
yield exec.exec(`sh -c \\"printf 'disk.dataPartition.size=${diskSize}\n' >> ${process.env.ANDROID_AVD_HOME}/"${avdName}".avd"/config.ini`);
}
//turn off hardware acceleration on Linux
// turn off hardware acceleration on Linux
if (process.platform === 'linux' && disableLinuxHardwareAcceleration) {
console.log('Disabling Linux hardware acceleration.');
emulatorOptions += ' -accel off';