From 30dbfe51355072f816e59e04796fe6f77c451c90 Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Thu, 15 Feb 2024 11:12:53 +0100 Subject: [PATCH] update gh action build Signed-off-by: Lukas Jungmann --- .github/workflows/maven.yml | 15 +++++---------- 1 file changed, 5 insertions(+), 10 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 38866ff8..0c060053 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,5 +1,5 @@ # -# Copyright (c) 2021, 2022 Contributors to the Eclipse Foundation +# Copyright (c) 2021, 2024 Contributors to the Eclipse Foundation # # This program and the accompanying materials are made available under the # terms of the Eclipse Public License v. 2.0 which is available at @@ -29,22 +29,17 @@ jobs: strategy: matrix: - java_version: [ 11, 17 ] + java_version: [ 11, 17, 21 ] steps: - name: Checkout for build - uses: actions/checkout@v2.3.4 + uses: actions/checkout@v4 - name: Set up JDK - uses: actions/setup-java@v2 + uses: actions/setup-java@v4 with: distribution: 'zulu' java-version: ${{ matrix.java_version }} - - name: Cache local Maven repository - uses: actions/cache@v2 - with: - path: ~/.m2 - key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }} - restore-keys: ${{ runner.os }}-m2 + cache: 'maven' - name: Verify run: | cd api