Skip to content

Commit

Permalink
Cache Maven deps
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-krecan committed Feb 18, 2023
1 parent 3f92ec9 commit d26a4c9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,13 @@ jobs:
with:
java-version: ${{ matrix.java }}
distribution: 'temurin'
cache: 'maven'
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2/repository
key: maven-${{ hashFiles('**/pom.xml') }}
restore-keys: |
maven-
- name: Build with Maven
env:
MAVEN_OPTS: ${{ matrix.maven-opts }}
Expand Down

0 comments on commit d26a4c9

Please sign in to comment.