ZLMediaKit/.github/workflows/android.yml

26 lines
585 B
YAML
Raw Normal View History

2022-06-19 14:40:51 +08:00
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源码
2022-06-19 15:54:30 +08:00
run: mv -f .gitmodules_github .gitmodules && git submodule sync && git submodule update --init
2022-06-19 14:40:51 +08:00
- name: 赋予gradlew文件可执行权限
run: chmod +x ./Android/gradlew
- name: 编译
run: cd Android && ./gradlew build