Upgrade from deprecated macos-13 to macos-latest in GitHub CI
diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml
index aabe25e..a71fb04 100644
--- a/.github/workflows/maven.yml
+++ b/.github/workflows/maven.yml
@@ -27,7 +27,7 @@
continue-on-error: ${{ matrix.experimental }}
strategy:
matrix:
- os: [ubuntu-latest, windows-latest, macos-13]
+ os: [ubuntu-latest, windows-latest, macos-latest]
java: [ 8, 11, 17, 21, 25 ]
experimental: [false]
include:
@@ -48,7 +48,7 @@
- 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 --errors --show-version --batch-mode --no-transfer-progress -Ddoclint=all