ci: 优化Android APK构建环境
Some checks failed
Frontend CI / ota-android (push) Failing after 6m30s
Frontend CI / build-android-apk (push) Failing after 9m13s
Frontend CI / build-and-push-web (push) Failing after 14s

将 APK 构建任务切换到预装 Android SDK 的容器镜像,移除在线安装 SDK 步骤以提升稳定性并避免许可证管道失败。

Made-with: Cursor
This commit is contained in:
2026-03-17 15:24:10 +08:00
parent ef955db99f
commit f7fd849cb1

View File

@@ -95,6 +95,8 @@ jobs:
build-android-apk:
runs-on: ubuntu-latest
container:
image: reactnativecommunity/react-native-android:latest
permissions:
contents: read
steps:
@@ -113,14 +115,6 @@ jobs:
node-version: '25.6.1'
cache: 'npm'
- name: Set up Android SDK
uses: android-actions/setup-android@v3
- name: Install Android SDK packages
run: |
yes | sdkmanager --licenses
sdkmanager "platform-tools" "platforms;android-35" "build-tools;35.0.0"
- name: Install dependencies
run: npm ci