Skip to content

Commit 6924380

Browse files
Add Maven dependency caching on CI action
1 parent f255cbf commit 6924380

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/workflows/build.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,12 @@ jobs:
1111
uses: actions/setup-java@v1
1212
with:
1313
java-version: 1.8
14+
- name: Cache Maven packages
15+
uses: actions/cache@v2
16+
with:
17+
path: ~/.m2
18+
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
19+
restore-keys: ${{ runner.os }}-m2
1420
- name: Install NetCDF tools
1521
run: sudo apt install netcdf-bin
1622
- name: Maven build and test

0 commit comments

Comments
 (0)