mirror of
https://github.com/reactivecircus/android-emulator-runner.git
synced 2026-08-31 17:49:33 +00:00
WIP - windows support
This commit is contained in:
@@ -4,35 +4,20 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
- 'yc/windows-support'
|
||||||
paths-ignore:
|
paths-ignore:
|
||||||
- '**.md'
|
- '**.md'
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
test:
|
test:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: windows-latest
|
||||||
env:
|
env:
|
||||||
JAVA_TOOL_OPTIONS: -Xmx4g
|
JAVA_TOOL_OPTIONS: -Xmx4g
|
||||||
timeout-minutes: 15
|
timeout-minutes: 15
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
os: [macos-latest, ubuntu-latest]
|
|
||||||
api-level: [16, 23, 29]
|
api-level: [16, 23, 29]
|
||||||
target: [default, google_apis]
|
target: [default, google_apis]
|
||||||
exclude:
|
|
||||||
- os: ubuntu-latest
|
|
||||||
api-level: 23
|
|
||||||
- os: ubuntu-latest
|
|
||||||
api-level: 29
|
|
||||||
- target: google_apis
|
|
||||||
api-level: 16
|
|
||||||
- target: google_apis
|
|
||||||
api-level: 23
|
|
||||||
- target: google_apis
|
|
||||||
api-level: 29
|
|
||||||
include:
|
|
||||||
- os: macos-latest
|
|
||||||
api-level: 30
|
|
||||||
target: google_apis
|
|
||||||
steps:
|
steps:
|
||||||
- name: checkout
|
- name: checkout
|
||||||
uses: actions/checkout@v2
|
uses: actions/checkout@v2
|
||||||
|
|||||||
+2
-8
@@ -37,14 +37,8 @@ const script_parser_1 = require("./script-parser");
|
|||||||
function run() {
|
function run() {
|
||||||
return __awaiter(this, void 0, void 0, function* () {
|
return __awaiter(this, void 0, void 0, function* () {
|
||||||
try {
|
try {
|
||||||
// only support running on macOS or Linux
|
if (process.platform === 'linux') {
|
||||||
if (process.platform !== 'darwin') {
|
console.warn(`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`);
|
||||||
if (process.platform === 'linux') {
|
|
||||||
console.warn(`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`);
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
throw new Error('Unsupported virtual machine: please use either macos or ubuntu VM.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
// API level of the platform and system image
|
// API level of the platform and system image
|
||||||
const apiLevelInput = core.getInput('api-level', { required: true });
|
const apiLevelInput = core.getInput('api-level', { required: true });
|
||||||
|
|||||||
+4
-9
@@ -7,15 +7,10 @@ import { parseScript } from './script-parser';
|
|||||||
|
|
||||||
async function run() {
|
async function run() {
|
||||||
try {
|
try {
|
||||||
// only support running on macOS or Linux
|
if (process.platform === 'linux') {
|
||||||
if (process.platform !== 'darwin') {
|
console.warn(
|
||||||
if (process.platform === 'linux') {
|
`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`
|
||||||
console.warn(
|
);
|
||||||
`You're running a Linux VM where hardware acceleration is not available. Please consider using a macOS VM instead to take advantage of native hardware acceleration support provided by HAXM.`
|
|
||||||
);
|
|
||||||
} else {
|
|
||||||
throw new Error('Unsupported virtual machine: please use either macos or ubuntu VM.');
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// API level of the platform and system image
|
// API level of the platform and system image
|
||||||
|
|||||||
Reference in New Issue
Block a user