Skip to content

Commit c31858b

Browse files
committed
Cache ~/.m2 dir for GitHub builds.
1 parent 5baac5c commit c31858b

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
@@ -32,6 +32,12 @@ jobs:
3232

3333
steps:
3434
- uses: actions/checkout@v2.3.2
35+
- uses: actions/cache@v2
36+
with:
37+
path: ~/.m2/repository
38+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
39+
restore-keys: |
40+
${{ runner.os }}-maven-
3541
- name: Set up JDK ${{ matrix.java }}
3642
uses: actions/setup-java@v1.4.0
3743
with:

0 commit comments

Comments
 (0)