From 23a35298024159a7fcb772ba3542dc8974d281a2 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 8 Jul 2021 20:02:02 -0400 Subject: [PATCH] Add cache --- .github/workflows/maven.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index c590991..9fac7c0 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,9 +12,14 @@ on: jobs: build: runs-on: ubuntu-latest - steps: - uses: actions/checkout@v2 + - name: Cache Maven packages + uses: actions/cache@v2 + with: + path: ~/.m2 + key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} + restore-keys: ${{ runner.os }}-m2 - name: Checkout submodules uses: textbook/git-checkout-submodule-action@2.1.1 - name: Set up JDK 16