From c39b43d37799c24cb0e4c9bcd7045be025585866 Mon Sep 17 00:00:00 2001 From: Gerd Aschemann Date: Sat, 20 Apr 2024 11:45:44 +0200 Subject: [PATCH] WIP Cache Gradle toolchain JDKs --- .github/workflows/gradle-build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/gradle-build.yml b/.github/workflows/gradle-build.yml index 981c8167..93dc5dcb 100644 --- a/.github/workflows/gradle-build.yml +++ b/.github/workflows/gradle-build.yml @@ -20,11 +20,11 @@ jobs: # SonarQube requires JDK 17 or higher java-version: 17 - - name: Cache JDK + - name: Cache Gradle Toolchain JDKs uses: actions/cache@v4 with: - path: ~/.jdk - key: ${{ runner.os }}-jdk + path: ~/.gradle/jdks + key: "${{ runner.os }}-gradle-jdks" restore-keys: ${{ runner.os }}-jdk - name: Setup Gradle @@ -36,7 +36,7 @@ jobs: uses: actions/cache@v4 with: path: ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} + key: "${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}" restore-keys: ${{ runner.os }}-gradle - name: Validate Gradle Wrapper