From ad378b9ff0374f9b92a10bdfd1ce73f699f13dea Mon Sep 17 00:00:00 2001 From: TonyTang Date: Wed, 4 May 2022 21:04:33 -0700 Subject: [PATCH] Fix ci --- .github/workflows/android.yml | 27 ++++++++++++++------------- 1 file changed, 14 insertions(+), 13 deletions(-) diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index 3071e5d..2883d67 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -1,17 +1,18 @@ -name: Android CI - -on: [push] - +name: CI +on: + push: + branches: + - master + pull_request: jobs: build: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v1 - - name: set up JDK 1.8 - uses: actions/setup-java@v1 - with: - java-version: 1.8 - - name: Build with Gradle - run: ./gradlew build + - uses: actions/checkout@v2.4.0 + - name: set up Java 11 + uses: actions/setup-java@v2.3.1 + with: + distribution: 'adopt-openj9' + java-version: 11 + - name: Build with Gradle + run: ./gradlew :sample:assembleDebug