From f5b59915884ec9dc0c7a4c5736d08792c53f7a0d Mon Sep 17 00:00:00 2001 From: Art Shendrik Date: Tue, 26 Nov 2024 21:22:22 +0000 Subject: [PATCH] ci(workflows): update Java matrix to include version 17 - Change Java version from 11 to 17 in build matrix - Use GraalVM distribution for Java setup - Adjust CodeQL job conditions for Java 17 configuration Signed-off-by: Art Shendrik --- .github/workflows/build.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 86a23d9..d1054ba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -61,7 +61,7 @@ jobs: strategy: fail-fast: false matrix: - java: [ '23', '11' ] + java: [ '23', '17' ] os: [ 'macos', 'windows', 'ubuntu' ] # CodeQL supports ['c-cpp', 'csharp', 'go', 'java-kotlin', 'javascript-typescript', 'python', 'ruby', 'swift'] # Learn more about CodeQL language support at https://aka.ms/codeql-docs/language-support. @@ -87,7 +87,7 @@ jobs: - name: 'Set up JDK ${{ matrix.java }}' uses: actions/setup-java@v4 with: - distribution: ${{ matrix.java == '11' && 'temurin' || 'graalvm' }} + distribution: graalvm java-version: '${{ matrix.java }}' - name: 'Cached KMP things (Konan, Node, Yarn, Binaryen)' @@ -118,7 +118,7 @@ jobs: # amend the `dependencyGuardBaseline` and `kotlinUpgradeYarnLock` task results - name: Initialize CodeQL - if: matrix.os == 'ubuntu' && matrix.java == '11' + if: matrix.os == 'ubuntu' && matrix.java == '17' uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} @@ -189,7 +189,7 @@ jobs: compression-level: 9 - name: Perform CodeQL Analysis - if: matrix.os == 'ubuntu' && matrix.java == '11' + if: matrix.os == 'ubuntu' && matrix.java == '17' timeout-minutes: 6 uses: github/codeql-action/analyze@v3 with: