From fc56beffe158b2266ddbb277338d843ddeefd0a8 Mon Sep 17 00:00:00 2001 From: Evgheni Popusoi Date: Mon, 7 Sep 2026 16:08:53 +0300 Subject: [PATCH 1/2] feat: Add graalvm-distribution input to native image build workflow Fixes the setup-graalvm step reusing jdk-distribution (default temurin, not a valid GraalVM distribution) by introducing a dedicated graalvm-distribution input defaulting to 'graalvm'. Co-Authored-By: Claude Sonnet 5 --- ...uild-native-autopilot-processor-nested.yml | 31 ++++++------------- 1 file changed, 9 insertions(+), 22 deletions(-) diff --git a/.github/workflows/pnp-build-native-autopilot-processor-nested.yml b/.github/workflows/pnp-build-native-autopilot-processor-nested.yml index dd683418..4e95b07a 100644 --- a/.github/workflows/pnp-build-native-autopilot-processor-nested.yml +++ b/.github/workflows/pnp-build-native-autopilot-processor-nested.yml @@ -52,12 +52,12 @@ on: description: 'Java version used in the project' type: string required: false - default: '17' - use-old-setup-java: - description: 'If true uses the java setup step of version 1' - type: boolean + default: '25' + graalvm-distribution: + description: 'GraalVM distribution used for native image builds' + type: string required: false - default: false + default: 'graalvm' do-pact-consumer-tests: description: 'If true runs tests defining data contracts' type: boolean @@ -131,28 +131,12 @@ jobs: service-account-key: ${{ secrets.SECRET_AUTH }} - name: Set up JDK - if: ${{ inputs.use-old-setup-java == false }} uses: actions/setup-java@v5 with: distribution: ${{ inputs.jdk-distribution }} java-version: ${{ inputs.java-version }} cache: maven - - name: Set up JDK - if: ${{ inputs.use-old-setup-java == true }} - uses: actions/setup-java@v5 - with: - distribution: ${{ inputs.jdk-distribution }} - java-version: ${{ inputs.java-version }} - - - uses: actions/cache@v4 - if: ${{ inputs.use-old-setup-java == true }} - with: - path: ~/.m2/repository - key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} - restore-keys: | - ${{ runner.os }}-maven- - - name: Determine version uses: extenda/actions/conventional-version@v0 id: semver @@ -337,10 +321,13 @@ jobs: - uses: graalvm/setup-graalvm@v1 with: - version: 'latest' java-version: ${{ inputs.java-version }} + distribution: ${{ inputs.graalvm-distribution }} + version: 'latest' components: 'native-image' github-token: ${{ secrets.GITHUB_TOKEN }} + cache: 'maven' + - name: Setup gcloud v1 uses: extenda/actions/setup-gcloud@v0 From 80a273162d899ccffa4357545f401c894c394579 Mon Sep 17 00:00:00 2001 From: Evgheni Popusoi Date: Mon, 7 Sep 2026 16:15:02 +0300 Subject: [PATCH 2/2] feat: Enable native image job reports in build workflow --- .../workflows/pnp-build-native-autopilot-processor-nested.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/pnp-build-native-autopilot-processor-nested.yml b/.github/workflows/pnp-build-native-autopilot-processor-nested.yml index 4e95b07a..39e7c129 100644 --- a/.github/workflows/pnp-build-native-autopilot-processor-nested.yml +++ b/.github/workflows/pnp-build-native-autopilot-processor-nested.yml @@ -327,6 +327,7 @@ jobs: components: 'native-image' github-token: ${{ secrets.GITHUB_TOKEN }} cache: 'maven' + native-image-job-reports: 'true' - name: Setup gcloud v1