From 712d8a5b15179348ca327605ae92024abe862d04 Mon Sep 17 00:00:00 2001 From: Stefan Niedermann Date: Fri, 19 Jan 2024 21:06:06 +0100 Subject: [PATCH] fix(ci): Setup Java 17 Signed-off-by: Stefan Niedermann --- .github/workflows/android.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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