diff --git a/.github/workflows/android.yml b/.github/workflows/android.yml index b614b0512..e45a649e9 100644 --- a/.github/workflows/android.yml +++ b/.github/workflows/android.yml @@ -21,6 +21,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + check-latest: true + cache: 'gradle' - name: Lint run: bash ./gradlew lintDebug --stacktrace --no-configuration-cache @@ -30,6 +36,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + check-latest: true + cache: 'gradle' - name: Unit tests run: bash ./gradlew test --stacktrace --no-configuration-cache @@ -39,6 +51,12 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 + - uses: actions/setup-java@v4 + with: + distribution: 'temurin' + java-version: '17' + check-latest: true + cache: 'gradle' - name: Build debug APK run: bash ./gradlew assembleDev --no-configuration-cache - name: Upload APK