From ebec503a5cb1fed57160fe54a76fdfe3aa7730c8 Mon Sep 17 00:00:00 2001 From: muhamadto Date: Tue, 1 Aug 2023 01:25:28 +1000 Subject: [PATCH] Spring 3 and java 20 Signed-off-by: muhamadto --- .github/workflows/build.yml | 11 ++++++++--- .github/workflows/codeql-analysis.yml | 13 ++++++++----- 2 files changed, 16 insertions(+), 8 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e4e5767..e14e2ef 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -26,15 +26,20 @@ jobs: build: runs-on: ubuntu-latest strategy: + matrix: + java-version: [ '20' ] + graalvm-version: [ '20.0.2' ] + distribution: [ 'graalvm' ] fail-fast: true steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup Java - uses: actions/setup-java@v3 + uses: graalvm/setup-graalvm@v1 with: - distribution: 'temurin' - java-version: '20' + distribution: '${{ matrix.distribution }}' + version: '${{ matrix.graalvm-version }}' + java-version: '${{ matrix.java-version }}' cache: 'maven' - name: Cache Sonar packages uses: actions/cache@v3 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 6a43a98..207209e 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -31,17 +31,20 @@ jobs: contents: read security-events: write strategy: - fail-fast: false matrix: - language: [ 'java' ] + java-version: [ '20' ] + graalvm-version: [ '20.0.2' ] + distribution: [ 'graalvm' ] + fail-fast: true steps: - name: Checkout repository uses: actions/checkout@v3 - name: Setup Java - uses: actions/setup-java@v3 + uses: graalvm/setup-graalvm@v1 with: - distribution: 'temurin' - java-version: '20' + distribution: '${{ matrix.distribution }}' + version: '${{ matrix.graalvm-version }}' + java-version: '${{ matrix.java-version }}' cache: 'maven' - name: Initialize CodeQL uses: github/codeql-action/init@v2