Skip to content

Commit

Permalink
use setup-java cache key (#1361)
Browse files Browse the repository at this point in the history
  • Loading branch information
sullis authored Oct 22, 2022
1 parent f429ff2 commit 7928bc1
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 36 deletions.
13 changes: 1 addition & 12 deletions .github/workflows/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
13 changes: 1 addition & 12 deletions .github/workflows/snapshot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 7928bc1

Please sign in to comment.