From be477209ac2c23d2a56d2f40343ee8495cf55270 Mon Sep 17 00:00:00 2001 From: Sean Gilligan Date: Mon, 27 Jan 2025 14:01:43 -0800 Subject: [PATCH] gradle.yml: Use setup-java cache functionality Use cache function of setup-java and remove the `cache` action. --- .github/workflows/gradle.yml | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index d0e19c7..da25ff3 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -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: