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