Skip to content

Commit

Permalink
Use actions/setup-java to cache maven
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Mar 21, 2022
1 parent 6f6a486 commit 5ee89ce
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 15 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ jobs:
with:
java-version: 8
distribution: 'temurin'
- uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ jobs:
with:
java-version: 8
distribution: 'temurin'
- uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand Down
6 changes: 1 addition & 5 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,7 @@ jobs:
with:
java-version: 8
distribution: 'temurin'
- uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-maven-
cache: 'maven'
- name: Build with Maven
run: .github/scripts/build.sh
env:
Expand Down

0 comments on commit 5ee89ce

Please sign in to comment.