Skip to content

Commit 5f83a10

Browse files
committed
ci(android): install sdk on github actions
Signed-off-by: pingkai <pingkai010@gmail.com>
1 parent 65f385d commit 5f83a10

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

.github/workflows/Android.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,15 @@ jobs:
3131
uses: actions/setup-java@v1
3232
with:
3333
java-version: 1.8
34+
35+
- name: Setup Android SDK
36+
uses: android-actions/setup-android@v2
3437
- name: Build debug APK
3538
run: |
3639
export ANDROID_NDK=/home/runner/android-env/android-ndk-r14b
3740
export ANDROID_NDK_ROOT=${ANDROID_NDK}
3841
export ANDROID_NDK_HOME=${ANDROID_NDK}
39-
echo "y" | sudo apt-get install ninja-build
42+
# echo "y" | sudo apt-get install ninja-build
4043
cd $GITHUB_WORKSPACE/platform/Android/source
4144
export ANDROID_FULL_PACKAGE='true'
4245
bash ./gradlew assembleDebug --stacktrace

.github/workflows/AndroidRelease.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,17 @@ jobs:
2424
uses: actions/setup-java@v1
2525
with:
2626
java-version: 1.8
27+
28+
- name: Setup Android SDK
29+
uses: android-actions/setup-android@v2
30+
2731
- name: Build Android sdk
2832
run: |
2933
git config --global user.email "you@example.com"
3034
git config --global user.name "Your Name"
3135
export ANDROID_NDK=/home/runner/android-env/android-ndk-r14b
3236
export ANDROID_NDK_ROOT=/home/runner/android-env/android-ndk-r14b
33-
echo "y" | sudo apt-get install ninja-build
37+
# echo "y" | sudo apt-get install ninja-build
3438
echo "y" | sudo apt-get install tree
3539
. setup.env
3640
build_Android

0 commit comments

Comments
 (0)