From 6126e90c779244d67bce976232e58fcf4b27c8ba Mon Sep 17 00:00:00 2001 From: Lukas Jungmann Date: Wed, 14 Feb 2024 17:08:16 +0100 Subject: [PATCH] update GH action build Signed-off-by: Lukas Jungmann (cherry picked from commit c935ffcac8c729b14fdcd1fd04e5998028a35c2a) --- .github/workflows/maven.yml | 15 +++++---------- .github/workflows/web.yml | 8 ++++---- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 6ca476f..dcbd732 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,21 +29,16 @@ jobs: strategy: matrix: - java_version: [ 11, 17-ea ] + java_version: [ 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 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 && mvn -B -V -U -C -Poss-release clean verify org.glassfish.copyright:glassfish-copyright-maven-plugin:check -Dgpg.skip=true -Dcopyright.ignoreyear=true diff --git a/.github/workflows/web.yml b/.github/workflows/web.yml index 61353c3..8bec71c 100644 --- a/.github/workflows/web.yml +++ b/.github/workflows/web.yml @@ -1,5 +1,5 @@ # -# Copyright (c) 2022 Contributors to the Eclipse Foundation +# Copyright (c) 2022, 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 @@ -40,7 +40,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Add static content run: | export VERSION=`curl https://repo1.maven.org/maven2/jakarta/activation/jakarta.activation-api/maven-metadata.xml | tac | grep -o -m 1 "[[:digit:]]\.[[:digit:]]\.[[:digit:]]" | cut -f 1 -d "<"` @@ -50,7 +50,7 @@ jobs: unzip -q -d ./www/api jakarta.activation-api-javadoc.zip -x "META-INF/*" cp -Rfv CONTRIBUTING.md doc/spec/* ./www/ - name: Setup Pages - uses: actions/configure-pages@v2 + uses: actions/configure-pages@v3 - name: Build with Jekyll uses: actions/jekyll-build-pages@v1 with: @@ -69,4 +69,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v1 + uses: actions/deploy-pages@v2