Skip to content

Commit 3c71e71

Browse files
Make GitHub Actions cache Maven packages
1 parent 6659dce commit 3c71e71

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,11 @@ jobs:
1818
uses: actions/setup-java@v1
1919
with:
2020
java-version: ${{ matrix.java }}
21+
- name: Cache Maven packages
22+
uses: actions/cache@v2
23+
with:
24+
path: ~/.m2
25+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
26+
restore-keys: ${{ runner.os }}-m2
2127
- name: Build with Maven
2228
run: mvn -Dfailonerror=false -B package

0 commit comments

Comments
 (0)