From: Christian Femers Date: Fri, 11 Sep 2020 13:34:27 +0000 (+0200) Subject: Cache Maven dependencies in GitHub Actions X-Git-Url: https://mograsim.net/gitweb/?p=Mograsim.git;a=commitdiff_plain;h=49092a53e63752ca13f6e0d1c1d94009a00b78b8 Cache Maven dependencies in GitHub Actions --- diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index d9ea203b..605bdf82 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -19,5 +19,12 @@ jobs: uses: actions/setup-java@v1 with: java-version: 11 + - name: Cache Maven Dependencies + uses: actions/cache@v2.1.1 + with: + path: ~/.m2/repository + key: mograsim-maven-${{ hashFiles('**/pom.xml,**/MANIFEST.MF') }} + restore-keys: | + mograsim-maven- - name: Build with Maven run: mvn --batch-mode --errors --fail-at-end --show-version clean verify --file pom.xml