From e0e80b48b2202eb711e5b87732239f5e2077897e Mon Sep 17 00:00:00 2001 From: Gary Gregory Date: Mon, 10 Aug 2020 21:13:58 -0400 Subject: [PATCH] Cache ~/.m2 dir for GitHub builds. --- .github/workflows/maven.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d8d38591..a2ac823e 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -32,6 +32,12 @@ jobs: steps: - uses: actions/checkout@v2.3.2 + - uses: actions/cache@v2 + with: + path: ~/.m2/repository + key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} + restore-keys: | + ${{ runner.os }}-maven- - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@v1.4.0 with: