diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 9a24b4974..e7ef8dbd4 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -28,7 +28,7 @@ jobs: strategy: fail-fast: false matrix: - os: [ubuntu-latest, macos-13] + os: [ubuntu-latest, macos-latest] java: [ 8, 11, 17, 21, 25 ] experimental: [false] # Keep the same parameter order as the matrix above @@ -50,7 +50,7 @@ jobs: - name: Set up JDK ${{ matrix.java }} uses: actions/setup-java@dded0888837ed1f317902acf8a20df0ad188d165 # v5.0.0 with: - distribution: 'temurin' + distribution: ${{ runner.os == 'macOS' && matrix.java == '8' && 'zulu' || 'temurin' }} java-version: ${{ matrix.java }} - name: Build with Maven run: mvn -Ddoclint=all --show-version --batch-mode --no-transfer-progress