diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index 570139e54e..2991011869 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -17,18 +17,7 @@ jobs: with: distribution: 'zulu' java-version: ${{ matrix.java }} - - uses: actions/cache@v3 - id: gradle-cache - with: - path: | - ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - - uses: actions/cache@v3 - id: gradle-wrapper-cache - with: - path: | - ~/.gradle/wrapper - key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + cache: 'gradle' - name: Build run: | sudo env "PATH=$PATH" bash -c "ulimit -l 65536 && ulimit -a && ./gradlew --no-daemon build" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9f2e06388c..893c1b7fab 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -17,18 +17,7 @@ jobs: with: distribution: 'zulu' java-version: 8 - - uses: actions/cache@v3 - id: gradle-cache - with: - path: | - ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - - uses: actions/cache@v3 - id: gradle-wrapper-cache - with: - path: | - ~/.gradle/wrapper - key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + cache: 'gradle' - name: Build candidate if: contains(github.ref, '-rc.') run: ./gradlew --info --stacktrace -Prelease.useLastTag=true candidate diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index da72c689f1..0d9ffb2b85 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -17,18 +17,7 @@ jobs: with: distribution: 'zulu' java-version: 8 - - uses: actions/cache@v3 - id: gradle-cache - with: - path: | - ~/.gradle/caches - key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }} - - uses: actions/cache@v3 - id: gradle-wrapper-cache - with: - path: | - ~/.gradle/wrapper - key: ${{ runner.os }}-gradlewrapper-${{ hashFiles('gradle/wrapper/*') }} + cache: 'gradle' - name: Build snapshot run: ./gradlew build snapshot env: