Skip to content

Commit 739ceb5

Browse files
committed
Add Java Distributions
1 parent 7e49d60 commit 739ceb5

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/pr-build.yml

+7-5
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
branches:
55
- master
66
- main
7-
87
jobs:
98
build:
109
name: Build
@@ -16,6 +15,9 @@ jobs:
1615
- 8
1716
- 11
1817
# - 17 Until Java 6 is not targeted this won't work
18+
java-distribution:
19+
- adopt-openj9 # IBM?
20+
- temurin # OpenJDK
1921
steps:
2022
- uses: actions/checkout@v2.4.0
2123
with:
@@ -24,15 +26,15 @@ jobs:
2426
uses: actions/setup-java@v2
2527
with:
2628
java-version: '${{ matrix.java-version }}'
27-
distribution: 'temurin'
29+
distribution: '${{ matrix.java-distribution }}'
2830
- name: Caching
2931
uses: actions/cache@v2
3032
with:
3133
path: ~/.m2
32-
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}
33-
- name: Build ${{ matrix.java-version }}
34+
key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}-${{ matrix.java-distribution }}
35+
- name: Build
3436
run: |
3537
java -version
3638
./mvnw clean install
37-
- name: Build Java Doc ${{ matrix.java-version }}
39+
- name: Build Java Doc
3840
run: ./mvnw javadoc:jar

0 commit comments

Comments
 (0)