Skip to content

Commit

Permalink
fix(ci): cache maven .m2 for actions to speed up builds
Browse files Browse the repository at this point in the history
  • Loading branch information
sruehl committed Dec 2, 2021
1 parent ec3ff0c commit ff3176e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/ensure-platforms.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ jobs:
java-package: jdk
java-version: ${{ matrix.java }}

- 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: Calculate platform suffix
id: platform_suffix
uses: actions/github-script@v5.0.0
Expand Down

0 comments on commit ff3176e

Please sign in to comment.