From dfc9a1059f6360e5e57ebafbec65ded9da8a1c73 Mon Sep 17 00:00:00 2001 From: niuhuan Date: Tue, 2 Apr 2024 14:45:17 +0800 Subject: [PATCH] :construction_worker: setup jdk and android-sdk --- .github/workflows/Package.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/Package.yml b/.github/workflows/Package.yml index 837b9b5..67a3046 100644 --- a/.github/workflows/Package.yml +++ b/.github/workflows/Package.yml @@ -82,6 +82,21 @@ jobs: name: Build (ios) run: | sh scripts/build-ipa.sh + - if: steps.need_build.outputs.need_build == 'true' && matrix.config.target == 'android' + name: Setup java (Android) + uses: actions/setup-java@v3 + with: + java-version: '17' + distribution: 'temurin' + - if: steps.need_build.outputs.need_build == 'true' && matrix.config.target == 'android' + name: Setup android tools (Android) + uses: android-actions/setup-android@v3 + with: + packages: | + platform-tools + platforms;android-32 + build-tools;30.0.2 + ndk;23.1.7779620 - if: steps.need_build.outputs.need_build == 'true' && matrix.config.target == 'android' name: Build (android-arm64) env: