Skip to content

Commit 6c9bdef

Browse files
committed
cache mvn repo in GH build
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
1 parent ceb5cf6 commit 6c9bdef

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/maven.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,13 @@ jobs:
2626
java_version: [ 11, 17-ea ]
2727

2828
steps:
29+
- name: Cache local Maven repository
30+
uses: actions/cache@v2
31+
with:
32+
path: ~/.m2/repository
33+
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
34+
restore-keys: |
35+
${{ runner.os }}-maven-
2936
- name: Checkout for build
3037
uses: actions/checkout@v2.3.4
3138
- name: Set up JDK

0 commit comments

Comments
 (0)