diff --git a/.github/workflows/pr-build.yml b/.github/workflows/pr-build.yml index 3f27e80f7..c7afe1c2c 100644 --- a/.github/workflows/pr-build.yml +++ b/.github/workflows/pr-build.yml @@ -4,7 +4,6 @@ on: branches: - master - main - jobs: build: name: Build @@ -16,6 +15,9 @@ jobs: - 8 - 11 # - 17 Until Java 6 is not targeted this won't work + java-distribution: + - adopt-openj9 # IBM? + - temurin # OpenJDK steps: - uses: actions/checkout@v2.4.0 with: @@ -24,15 +26,15 @@ jobs: uses: actions/setup-java@v2 with: java-version: '${{ matrix.java-version }}' - distribution: 'temurin' + distribution: '${{ matrix.java-distribution }}' - name: Caching uses: actions/cache@v2 with: path: ~/.m2 - key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }} - - name: Build ${{ matrix.java-version }} + key: maven-${{ hashFiles('**/pom.xml') }}-${{ matrix.java-version }}-${{ matrix.java-distribution }} + - name: Build run: | java -version ./mvnw clean install - - name: Build Java Doc ${{ matrix.java-version }} + - name: Build Java Doc run: ./mvnw javadoc:jar