新增Android ci

This commit is contained in:
xiongziliang 2022-06-19 14:40:51 +08:00
parent 67305b1f9f
commit ca66858da2
4 changed files with 29 additions and 4 deletions

25
.github/workflows/android.yml vendored Normal file
View File

@ -0,0 +1,25 @@
name: Android CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: 下载源码
uses: actions/checkout@v1
- name: 配置JDK
uses: actions/setup-java@v3
with:
java-version: '11'
distribution: 'temurin'
cache: gradle
- name: 下载submodule源码
run: git submodule update --init
- name: 赋予gradlew文件可执行权限
run: chmod +x ./Android/gradlew
- name: 编译
run: cd Android && ./gradlew build

View File

@ -17,7 +17,7 @@ android {
}
}
ndk {
abiFilters "armeabi-v7a"//, "arm64-v8a"
abiFilters "arm64-v8a" //, "armeabi-v7a"
}
}
}

View File

@ -7,7 +7,7 @@ buildscript {
}
dependencies {
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'com.android.tools.build:gradle:4.0.1'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files

View File

@ -1,6 +1,6 @@
#Fri May 10 12:15:32 CST 2019
#Sun Jun 19 15:19:24 CST 2022
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-4.10.1-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.1.1-all.zip