From ca66858da2de35a875cbe9b1e57004d1d95c4eb9 Mon Sep 17 00:00:00 2001 From: xiongziliang <771730766@qq.com> Date: Sun, 19 Jun 2022 14:40:51 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9EAndroid=20ci?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/android.yml | 25 +++++++++++++++++++ Android/app/build.gradle | 2 +- Android/build.gradle | 2 +- .../gradle/wrapper/gradle-wrapper.properties | 4 +-- 4 files changed, 29 insertions(+), 4 deletions(-) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 00000000..04506829 --- /dev/null +++ b/.github/workflows/android.yml @@ -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 diff --git a/Android/app/build.gradle b/Android/app/build.gradle index 7e02236a..7b0bfe8e 100644 --- a/Android/app/build.gradle +++ b/Android/app/build.gradle @@ -17,7 +17,7 @@ android { } } ndk { - abiFilters "armeabi-v7a"//, "arm64-v8a" + abiFilters "arm64-v8a" //, "armeabi-v7a" } } } diff --git a/Android/build.gradle b/Android/build.gradle index 3c23accd..95a39961 100644 --- a/Android/build.gradle +++ b/Android/build.gradle @@ -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 diff --git a/Android/gradle/wrapper/gradle-wrapper.properties b/Android/gradle/wrapper/gradle-wrapper.properties index 51f504ca..0a81a846 100644 --- a/Android/gradle/wrapper/gradle-wrapper.properties +++ b/Android/gradle/wrapper/gradle-wrapper.properties @@ -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