From 50d5b10c0167135fd356722acdfaaef2542f8f1b Mon Sep 17 00:00:00 2001 From: LoveSy Date: Fri, 24 Jan 2025 19:46:33 +0800 Subject: [PATCH] Add `Baklava` support (#424) * Add `Baklava` support * Fix typo of `ubuntu-latest` to fix CI --- .github/workflows/main.yml | 2 +- lib/input-validator.js | 2 +- src/input-validator.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 06c078931..587da8638 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -35,7 +35,7 @@ jobs: api-level: 34 target: aosp_atd arch: x86_64 - - os: ubuntu-lastest + - os: ubuntu-latest api-level: 35 target: google_apis arch: x86_64 diff --git a/lib/input-validator.js b/lib/input-validator.js index c27593be7..626ada89d 100644 --- a/lib/input-validator.js +++ b/lib/input-validator.js @@ -7,7 +7,7 @@ exports.VALID_ARCHS = ['x86', 'x86_64', 'arm64-v8a']; exports.VALID_CHANNELS = ['stable', 'beta', 'dev', 'canary']; exports.MIN_PORT = 5554; exports.MAX_PORT = 5584; -exports.PREVIEW_API_LEVELS = ['Tiramisu', 'UpsideDownCake', 'VanillaIceCream']; +exports.PREVIEW_API_LEVELS = ['Tiramisu', 'UpsideDownCake', 'VanillaIceCream', 'Baklava']; function checkApiLevel(apiLevel) { if (exports.PREVIEW_API_LEVELS.some((previewLevel) => apiLevel.startsWith(previewLevel))) return; diff --git a/src/input-validator.ts b/src/input-validator.ts index 8804685ea..e5142ccc3 100644 --- a/src/input-validator.ts +++ b/src/input-validator.ts @@ -4,7 +4,7 @@ export const VALID_ARCHS: Array = ['x86', 'x86_64', 'arm64-v8a']; export const VALID_CHANNELS: Array = ['stable', 'beta', 'dev', 'canary']; export const MIN_PORT = 5554; export const MAX_PORT = 5584; -export const PREVIEW_API_LEVELS: Array = ['Tiramisu', 'UpsideDownCake', 'VanillaIceCream']; +export const PREVIEW_API_LEVELS: Array = ['Tiramisu', 'UpsideDownCake', 'VanillaIceCream', 'Baklava']; export function checkApiLevel(apiLevel: string): void { if (PREVIEW_API_LEVELS.some((previewLevel) => apiLevel.startsWith(previewLevel))) return;