From 20a9ce07fae3fe659cdf42b7025c8aafff71649d Mon Sep 17 00:00:00 2001 From: Philippe Charles Date: Fri, 7 Feb 2025 15:54:18 +0100 Subject: [PATCH] Bump experimental matrix to JDK23 --- .github/workflows/java-ea-maven.yml | 31 +++++++++++++++++------------ 1 file changed, 18 insertions(+), 13 deletions(-) diff --git a/.github/workflows/java-ea-maven.yml b/.github/workflows/java-ea-maven.yml index d51d26d..bbada0f 100644 --- a/.github/workflows/java-ea-maven.yml +++ b/.github/workflows/java-ea-maven.yml @@ -14,30 +14,35 @@ jobs: strategy: fail-fast: false matrix: - java: [ 21 ] - os: [ ubuntu-latest, macos-latest ] + java: [ 23 ] + os: + - ubuntu-latest # Linux x64 + - ubuntu-24.04-arm # Linux arm64 + - macos-latest # macOS arm64 name: JDK${{ matrix.java }} on ${{ matrix.os }} runs-on: ${{ matrix.os }} steps: - - name: Checkout source code - uses: actions/checkout@v4 + - name: Checkout and Setup Maven + uses: s4u/setup-maven-action@v1.18.0 with: - submodules: true - fetch-depth: 0 + checkout-submodules: true + checkout-fetch-depth: 0 + java-distribution: 'temurin' + java-version: ${{ matrix.java }} - - name: Setup Java - uses: actions/setup-java@v4 + - name: Pre-download dependencies with Maven + uses: nick-fields/retry@v3 with: - distribution: 'temurin' - java-version: ${{ matrix.java }} - cache: 'maven' + command: mvn -U dependency:go-offline + max_attempts: 3 + timeout_minutes: 5 - name: Build and (headless) test with Maven (Linux) if: ${{ runner.os == 'Linux' }} - run: xvfb-run mvn -U verify + run: xvfb-run mvn verify - name: Build and (headless) test with Maven (Windows and macOS) if: ${{ runner.os != 'Linux' }} - run: mvn -U verify + run: mvn verify