Skip to content

Commit 0d2bd41

Browse files
author
Gary Gregory
committed
Cache ~/.m2 dir for GitHub builds.
1 parent 5c78506 commit 0d2bd41

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/maven.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,12 @@ jobs:
3838

3939
steps:
4040
- uses: actions/checkout@v2.3.2
41+
- uses: actions/cache@v2
42+
with:
43+
path: ~/.m2/repository
44+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
45+
restore-keys: |
46+
${{ runner.os }}-maven-
4147
- name: Set up JDK ${{ matrix.java }}
4248
uses: actions/setup-java@v1.4.0
4349
with:

0 commit comments

Comments
 (0)