Skip to content

Commit b164fa2

Browse files
committed
Use setup-java's Maven cache and use Temurin JDK distribution
1 parent 01d4604 commit b164fa2

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,15 +16,23 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
java: [6, 8, 11, 15, 17-ea]
19+
java: ['6', '8', '11', '15', '17-ea']
2020
steps:
2121
- uses: actions/checkout@v2
2222
- name: Download Maven # Download with default JDK because OpenJDK 6 does not support TLS 1.2
2323
run: ./mvnw --version
24-
- name: Set up JDK
24+
- name: Set up JDK 6
25+
if: ${{ matrix.java == '6'}}
2526
uses: actions/setup-java@v1
2627
with:
2728
java-version: ${{ matrix.java }}
29+
- name: Set up JDK
30+
if: ${{ matrix.java != '6'}}
31+
uses: actions/setup-java@v2
32+
with:
33+
java-version: ${{ matrix.java }}
34+
distribution: temurin
35+
cache: maven
2836
- name: Build and verify
2937
run: ./mvnw verify javadoc:javadoc site:site --batch-mode --errors --settings .github/workflows/settings.xml
3038

0 commit comments

Comments
 (0)