新增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