Skip to content

Commit

Permalink
ci(workflows): update Java matrix to include version 17
Browse files Browse the repository at this point in the history
- 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 <artyom.shendrik@gmail.com>
  • Loading branch information
amal committed Nov 26, 2024
1 parent a1f5ad3 commit f5b5991
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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)'
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit f5b5991

Please sign in to comment.