From 63bfb6be5568913e933e7d8a3911926dc963b837 Mon Sep 17 00:00:00 2001 From: Aayush Gupta Date: Thu, 3 Aug 2023 01:09:16 +0800 Subject: [PATCH] Update possible github actions Signed-off-by: Aayush Gupta --- .github/workflows/client.yml | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml index 370d72d3..82ca5c42 100644 --- a/.github/workflows/client.yml +++ b/.github/workflows/client.yml @@ -7,29 +7,23 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v1 - - - name: Gradle dependency cache - uses: actions/cache@v2 - with: - path: | - ~/.gradle/caches - ~/.gradle/wrapper - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }} - restore-keys: ${{ runner.os }}-gradle- + - name: Checkout the code + uses: actions/checkout@v3 - name: Android build cache - uses: actions/cache@v2 + uses: actions/cache@v3 with: path: | ~/.android/build-cache key: ${{ runner.os }}-android restore-keys: ${{ runner.os }}-android - - name: Set up JDK 11 - uses: actions/setup-java@v1 + - name: Set up JDK 17 + uses: actions/setup-java@v3 with: + distribution: 'corretto' java-version: 17 + cache: 'gradle' - name: Build run: ./gradlew compileDebugAndroidTestSources check assemble ktlintCheck