Skip to content

Commit

Permalink
WIP Cache Gradle toolchain JDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
ascheman committed Apr 20, 2024
1 parent 497982e commit c39b43d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down

0 comments on commit c39b43d

Please sign in to comment.