This is an automated email from the ASF dual-hosted git repository. olamy pushed a commit to branch gh-cache-setup-java in repository https://gitbox.apache.org/repos/asf/maven-javadoc-plugin.git
commit 85c0c7d83c399311223f0b561693db86a08c08a9 Author: Olivier Lamy <[email protected]> AuthorDate: Fri Aug 27 13:56:31 2021 +1000 use setup-java cache, more jdk --- .github/workflows/maven.yml | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index ea1565b..91ea41b 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -26,7 +26,7 @@ jobs: matrix: os: [ubuntu-latest, windows-latest, macOS-latest] java: [8, 11, 16, 17-ea] - jdk: [adopt, zulu] + jdk: [adopt, zulu, temurin] fail-fast: false runs-on: ${{ matrix.os }} @@ -34,19 +34,10 @@ jobs: steps: - name: Checkout uses: actions/[email protected] - - - name: Set up cache for ~./m2/repository - uses: actions/[email protected] - with: - path: ~/.m2/repository - key: maven-${{ matrix.os }}-java${{ matrix.java }}-${{ hashFiles('**/pom.xml') }} - restore-keys: | - maven-${{ matrix.os }}-java${{ matrix.java }}- - maven-${{ matrix.os }}- - - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/[email protected] with: + cache: 'maven' distribution: ${{ matrix.jdk }} java-version: ${{ matrix.java }}
