Skip to content

Commit 74a6b54

Browse files
author
Vladimir Kotal
committed
enable Maven cache
1 parent cad7f0b commit 74a6b54

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,12 @@ jobs:
1313
uses: actions/setup-java@v1
1414
with:
1515
java-version: 11
16+
- name: Cache Maven packages
17+
uses: actions/cache@v2
18+
with:
19+
path: ~/.m2
20+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
21+
restore-keys: ${{ runner.os }}-m2
1622
- name: Install pre-requisites
1723
run: ./dev/before_install
1824
- name: Before build actions
@@ -29,6 +35,12 @@ jobs:
2935
uses: actions/setup-java@v1
3036
with:
3137
java-version: 11
38+
- name: Cache Maven packages
39+
uses: actions/cache@v2
40+
with:
41+
path: ~/.m2
42+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
43+
restore-keys: ${{ runner.os }}-m2
3244
- name: Install pre-requisites
3345
run: ./dev/before_install
3446
- name: Before build actions

0 commit comments

Comments
 (0)