From 4bbb2f6213ae5f123900f3bde80d98264425b0ff Mon Sep 17 00:00:00 2001 From: Colm O hEigeartaigh Date: Thu, 15 Aug 2024 08:42:20 +0100 Subject: [PATCH] Adding JDK17 to PR builds --- .github/workflows/pull-request-build.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pull-request-build.yaml b/.github/workflows/pull-request-build.yaml index a03592822f..2133c5e4d3 100644 --- a/.github/workflows/pull-request-build.yaml +++ b/.github/workflows/pull-request-build.yaml @@ -8,7 +8,7 @@ permissions: contents: read jobs: - build: + build-java-8: runs-on: ubuntu-latest permissions: contents: read @@ -26,3 +26,19 @@ jobs: run: mvn -U clean install -Djava.awt.headless=true -fae -B env: MAVEN_OPTS: "-Xmx1024M" + build-java-17: + runs-on: ubuntu-latest + permissions: + contents: read + pull-requests: read + timeout-minutes: 130 + steps: + - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 + - name: Set up JDK 17 + uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # v4.2.2 + with: + java-version: '17' + distribution: 'temurin' + cache: maven + - name: Build with Apache Maven + run: mvn -U clean install -Djava.awt.headless=true -fae -B