diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index dd6c56ed..3f09df66 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -4,35 +4,20 @@ on: push: branches: - main + - 'yc/windows-support' paths-ignore: - '**.md' jobs: test: - runs-on: ${{ matrix.os }} + runs-on: windows-latest env: JAVA_TOOL_OPTIONS: -Xmx4g timeout-minutes: 15 strategy: matrix: - os: [macos-latest, ubuntu-latest] api-level: [16, 23, 29] 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: - name: checkout uses: actions/checkout@v2 diff --git a/lib/main.js b/lib/main.js index 46e1bb01..0bd6cf73 100644 --- a/lib/main.js +++ b/lib/main.js @@ -37,14 +37,8 @@ const script_parser_1 = require("./script-parser"); function run() { return __awaiter(this, void 0, void 0, function* () { try { - // only support running on macOS or Linux - if (process.platform !== 'darwin') { - 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.'); - } + 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.`); } // API level of the platform and system image const apiLevelInput = core.getInput('api-level', { required: true }); diff --git a/src/main.ts b/src/main.ts index 4bc73b29..563ef722 100644 --- a/src/main.ts +++ b/src/main.ts @@ -7,15 +7,10 @@ import { parseScript } from './script-parser'; async function run() { try { - // only support running on macOS or Linux - if (process.platform !== 'darwin') { - 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.'); - } + 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.` + ); } // API level of the platform and system image