mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
Support aosp_atd and google_atd targets.
This commit is contained in:
@@ -38,8 +38,8 @@ jobs:
|
|||||||
target: playstore
|
target: playstore
|
||||||
arch: x86
|
arch: x86
|
||||||
- os: macos-latest
|
- os: macos-latest
|
||||||
api-level: 28
|
api-level: 30
|
||||||
target: google_apis
|
target: aosp_atd
|
||||||
arch: x86
|
arch: x86
|
||||||
- os: macos-11
|
- os: macos-11
|
||||||
api-level: 31
|
api-level: 31
|
||||||
@@ -99,6 +99,7 @@ jobs:
|
|||||||
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
disable-animations: false
|
disable-animations: false
|
||||||
working-directory: ./test-fixture/
|
working-directory: ./test-fixture/
|
||||||
|
channel: canary
|
||||||
script: echo "Generated AVD snapshot for caching."
|
script: echo "Generated AVD snapshot for caching."
|
||||||
|
|
||||||
- name: run action
|
- name: run action
|
||||||
@@ -116,6 +117,7 @@ jobs:
|
|||||||
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
emulator-options: -no-snapshot-save -no-window -gpu swiftshader_indirect -noaudio -no-boot-anim -camera-back none
|
||||||
disable-animations: true
|
disable-animations: true
|
||||||
working-directory: ./test-fixture/
|
working-directory: ./test-fixture/
|
||||||
|
channel: canary
|
||||||
script: |
|
script: |
|
||||||
echo $GITHUB_REPOSITORY
|
echo $GITHUB_REPOSITORY
|
||||||
adb devices
|
adb devices
|
||||||
|
|||||||
@@ -11,7 +11,7 @@ on:
|
|||||||
required: true
|
required: true
|
||||||
default: '30'
|
default: '30'
|
||||||
target:
|
target:
|
||||||
description: 'target of the system image - default, google_apis, google_apis_playstore, android-wear, android-wear-cn, android-tv or google-tv'
|
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv or google-tv'
|
||||||
required: true
|
required: true
|
||||||
default: 'default'
|
default: 'default'
|
||||||
arch:
|
arch:
|
||||||
|
|||||||
@@ -55,29 +55,39 @@ describe('target validator tests', () => {
|
|||||||
expect(func2).not.toThrow();
|
expect(func2).not.toThrow();
|
||||||
|
|
||||||
const func3 = () => {
|
const func3 = () => {
|
||||||
validator.checkTarget('google_apis_playstore');
|
validator.checkTarget('aosp_atd');
|
||||||
};
|
};
|
||||||
expect(func3).not.toThrow();
|
expect(func3).not.toThrow();
|
||||||
|
|
||||||
const func4 = () => {
|
const func4 = () => {
|
||||||
validator.checkTarget('android-wear');
|
validator.checkTarget('google_atd');
|
||||||
};
|
};
|
||||||
expect(func4).not.toThrow();
|
expect(func4).not.toThrow();
|
||||||
|
|
||||||
const func5 = () => {
|
const func5 = () => {
|
||||||
validator.checkTarget('android-wear-cn');
|
validator.checkTarget('google_apis_playstore');
|
||||||
};
|
};
|
||||||
expect(func5).not.toThrow();
|
expect(func5).not.toThrow();
|
||||||
|
|
||||||
const func6 = () => {
|
const func6 = () => {
|
||||||
validator.checkTarget('android-tv');
|
validator.checkTarget('android-wear');
|
||||||
};
|
};
|
||||||
expect(func6).not.toThrow();
|
expect(func6).not.toThrow();
|
||||||
|
|
||||||
const func7 = () => {
|
const func7 = () => {
|
||||||
validator.checkTarget('google-tv');
|
validator.checkTarget('android-wear-cn');
|
||||||
};
|
};
|
||||||
expect(func7).not.toThrow();
|
expect(func7).not.toThrow();
|
||||||
|
|
||||||
|
const func8 = () => {
|
||||||
|
validator.checkTarget('android-tv');
|
||||||
|
};
|
||||||
|
expect(func8).not.toThrow();
|
||||||
|
|
||||||
|
const func9 = () => {
|
||||||
|
validator.checkTarget('google-tv');
|
||||||
|
};
|
||||||
|
expect(func9).not.toThrow();
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -9,7 +9,7 @@ inputs:
|
|||||||
description: 'API level of the platform and system image - e.g. 23 for Android Marshmallow, 29 for Android 10'
|
description: 'API level of the platform and system image - e.g. 23 for Android Marshmallow, 29 for Android 10'
|
||||||
required: true
|
required: true
|
||||||
target:
|
target:
|
||||||
description: 'target of the system image - default, google_apis, google_apis_playstore, android-wear, android-wear-cn, android-tv or google-tv'
|
description: 'target of the system image - default, google_apis, google_apis_playstore, aosp_atd, google_atd, android-wear, android-wear-cn, android-tv or google-tv'
|
||||||
default: 'default'
|
default: 'default'
|
||||||
arch:
|
arch:
|
||||||
description: 'CPU architecture of the system image - x86, x86_64 or arm64-v8a'
|
description: 'CPU architecture of the system image - x86, x86_64 or arm64-v8a'
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
Object.defineProperty(exports, "__esModule", { value: true });
|
Object.defineProperty(exports, "__esModule", { value: true });
|
||||||
exports.checkEmulatorBuild = exports.checkDisableLinuxHardwareAcceleration = exports.checkDisableSpellchecker = exports.checkDisableAnimations = exports.checkForceAvdCreation = exports.checkChannel = exports.checkArch = exports.checkTarget = exports.checkApiLevel = exports.VALID_CHANNELS = exports.VALID_ARCHS = exports.VALID_TARGETS = exports.MIN_API_LEVEL = void 0;
|
exports.checkEmulatorBuild = exports.checkDisableLinuxHardwareAcceleration = exports.checkDisableSpellchecker = exports.checkDisableAnimations = exports.checkForceAvdCreation = exports.checkChannel = exports.checkArch = exports.checkTarget = exports.checkApiLevel = exports.VALID_CHANNELS = exports.VALID_ARCHS = exports.VALID_TARGETS = exports.MIN_API_LEVEL = void 0;
|
||||||
exports.MIN_API_LEVEL = 15;
|
exports.MIN_API_LEVEL = 15;
|
||||||
exports.VALID_TARGETS = ['default', 'google_apis', 'google_apis_playstore', 'android-wear', 'android-wear-cn', 'android-tv', 'google-tv'];
|
exports.VALID_TARGETS = ['default', 'google_apis', 'aosp_atd', 'google_atd', 'google_apis_playstore', 'android-wear', 'android-wear-cn', 'android-tv', 'google-tv'];
|
||||||
exports.VALID_ARCHS = ['x86', 'x86_64', 'arm64-v8a'];
|
exports.VALID_ARCHS = ['x86', 'x86_64', 'arm64-v8a'];
|
||||||
exports.VALID_CHANNELS = ['stable', 'beta', 'dev', 'canary'];
|
exports.VALID_CHANNELS = ['stable', 'beta', 'dev', 'canary'];
|
||||||
function checkApiLevel(apiLevel) {
|
function checkApiLevel(apiLevel) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
export const MIN_API_LEVEL = 15;
|
export const MIN_API_LEVEL = 15;
|
||||||
export const VALID_TARGETS: Array<string> = ['default', 'google_apis', 'google_apis_playstore', 'android-wear', 'android-wear-cn', 'android-tv', 'google-tv'];
|
export const VALID_TARGETS: Array<string> = ['default', 'google_apis', 'aosp_atd', 'google_atd', 'google_apis_playstore', 'android-wear', 'android-wear-cn', 'android-tv', 'google-tv'];
|
||||||
export const VALID_ARCHS: Array<string> = ['x86', 'x86_64', 'arm64-v8a'];
|
export const VALID_ARCHS: Array<string> = ['x86', 'x86_64', 'arm64-v8a'];
|
||||||
export const VALID_CHANNELS: Array<string> = ['stable', 'beta', 'dev', 'canary'];
|
export const VALID_CHANNELS: Array<string> = ['stable', 'beta', 'dev', 'canary'];
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user