From b9294d7bacc8e34679ea105ea99302bc0ca93cac Mon Sep 17 00:00:00 2001 From: ZCShou <72115@163.com> Date: Sun, 19 Jun 2022 20:17:45 +0800 Subject: [PATCH] Revert "delete android" This reverts commit ca6f8b52603419586b678fa2c80168bec38f15d2. --- .github/workflows/android.yml | 45 +++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/android.yml diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml new file mode 100644 index 0000000..de78c72 --- /dev/null +++ b/.github/workflows/android.yml @@ -0,0 +1,45 @@ +# name 字段用于指定 Workflow 的名字 +name: Build GoGoGo + +# 在 on 字段下列举触发条件(事件),可以有多种 +on: + # 手动使用 Github WebUI 触发 + workflow_dispatch: + # 仓库收到 Push 时触发 + push: + tags: + - 'Release*' + # 仓库收到 pull_request 时触发 + pull_request: + branches: + - master + +# 一个 workflow 执行一个或多个 job,这些 job 被组织在 jobs 字段下 +jobs: + # 一个名为 build 的 job。每一个Job都是并发执行的并不是按照申明的先后顺序执行的, + # 如果多个job 之间存在依赖关系,需要使用 needs,例如 + # job1: + # xxx + # job2: + # needs: job1 + # xxx + build: + # 该 job 运行的系统环境,支持 ubuntu 、windows、macOS + runs-on: ubuntu-latest + # 该 job 的一系列步骤。每个以“-”开头 + steps: + # 检出我们的源代码 + - uses: actions/checkout@v3 + # 设置 JDK + - name: set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + cache: gradle + # 给 gradlew 增加执行权限 + - name: Grant execute permission for gradlew + run: chmod +x gradlew + # 启动构建 + - name: Build with Gradle + run: ./gradlew build