From 037518106ea899022490bbe070f1dddc991448c7 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 | 17 +++++++++++------ 2 files changed, 19 insertions(+), 9 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..c330d61 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 @@ -66,7 +69,9 @@ jobs: "url": "https://repo.spring.io/release" } ] - - name: Autobuild + profiles: '[{ "id": "native"}]' + + - name: Build uses: github/codeql-action/autobuild@v2 - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2