Skip to content

Commit

Permalink
gradle.yml: Use setup-java cache functionality
Browse files Browse the repository at this point in the history
Use cache function of setup-java and remove the
`cache` action.
  • Loading branch information
msgilligan committed Jan 27, 2025
1 parent d88d2a5 commit be47720
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,14 @@ jobs:
steps:
- name: Git checkout
uses: actions/checkout@v4
- name: Set up JDK
- name: Set up Java
uses: actions/setup-java@v4
with:
distribution: ${{ matrix.distribution }}
# When installing multiple JDKs, the last JDK installed is the default and will be used to run Gradle itself
java-version: |
23
- name: Cache Gradle packages
uses: actions/cache@v4
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: 'gradle'
- name: Install Nix
uses: cachix/install-nix-action@v30
with:
Expand Down

0 comments on commit be47720

Please sign in to comment.