diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 294504a2..7fcb50b9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -26,6 +26,11 @@ jobs: matrix: os: [ ubuntu-latest, windows-latest, macOS-latest ] java: [ 8, 11, 17 ] + dist: [ 'temurin', 'adopt-openj9' ] + exclude: + - os: macos-latest + dist: 'adopt-openj9' + fail-fast: false runs-on: ${{ matrix.os }} @@ -39,14 +44,14 @@ jobs: if: ${{ matrix.java == '8' }} uses: actions/setup-java@v3 with: - distribution: 'temurin' + distribution: ${{ matrix.dist }} java-version: 11 cache: 'maven' - name: Set up JDK uses: actions/setup-java@v3 with: - distribution: 'temurin' + distribution: ${{ matrix.dist }} java-version: ${{ matrix.java }} cache: 'maven'