Skip to content

Commit

Permalink
cache mvn repo in GH build
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Jungmann <lukas.jungmann@oracle.com>
  • Loading branch information
lukasj committed Oct 1, 2021
1 parent ceb5cf6 commit 6c9bdef
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/maven.yml
Expand Up @@ -26,6 +26,13 @@ jobs:
java_version: [ 11, 17-ea ]

steps:
- name: Cache local Maven repository
uses: actions/cache@v2
with:
path: ~/.m2/repository
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
${{ runner.os }}-maven-
- name: Checkout for build
uses: actions/checkout@v2.3.4
- name: Set up JDK
Expand Down

0 comments on commit 6c9bdef

Please sign in to comment.