Skip to content

Commit

Permalink
Caching maven repos properly
Browse files Browse the repository at this point in the history
  • Loading branch information
funkemunky committed Oct 30, 2023
1 parent 5e37d2c commit ca8fb24
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,10 @@ jobs:
- name: Cache Maven packages
uses: actions/cache@v2
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
path: ~/.m2/repository # Cache the Maven repository
key: maven-${{ runner.os }}-${{ hashFiles('**/*.xml') }}
restore-keys: |
maven-${{ runner.os }}-
- name: Compile
run: mvn -B -Pclean install
env:
Expand Down

0 comments on commit ca8fb24

Please sign in to comment.