From 27cded9e5130daf85656dc13477ba212ebcc667b Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Wed, 17 Sep 2025 18:28:31 +0200 Subject: [PATCH 1/2] Update to GraalVM 25 --- .github/workflows/aot-test.yml | 2 +- .github/workflows/publish.yml | 2 +- build.sbt | 2 ++ 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/aot-test.yml b/.github/workflows/aot-test.yml index 6cec2b9..5713bfe 100644 --- a/.github/workflows/aot-test.yml +++ b/.github/workflows/aot-test.yml @@ -17,7 +17,7 @@ jobs: - uses: graalvm/setup-graalvm@v1 with: - java-version: '24' + java-version: '25' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 2bea750..1210790 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -16,7 +16,7 @@ jobs: - uses: graalvm/setup-graalvm@v1 with: - java-version: '24' + java-version: '25' distribution: 'graalvm' github-token: ${{ secrets.GITHUB_TOKEN }} native-image-job-reports: 'true' diff --git a/build.sbt b/build.sbt index 72aecc5..04f14e5 100644 --- a/build.sbt +++ b/build.sbt @@ -35,6 +35,7 @@ lazy val graalOptions = Seq( "--initialize-at-build-time=org.glassfish.json.UnicodeDetectingInputStream", "-H:+TrackPrimitiveValues", // SkipFlow optimization -- will be default in GraalVM 25 "-H:+UsePredicates", // SkipFlow optimization -- will be default in GraalVM 25 + "-H:+MLCallCountProfileInference", // ML inference for hot/cold method detection // Make sure we don't include stuff that should be unreachable in the native image "-H:AbortOnMethodReachable=*UUID.randomUUID*", // Include XML error messages @@ -102,4 +103,5 @@ lazy val root = (project in file(".")) // Do a fast build if it's a dev build // For the release build, optimize for speed and make a build report graalVMNativeImageOptions := graalOptions, + graalVMNativeImageCommand := "/opt/graalvm_2025_09/bin/native-image", ) From 111a131ccc5b55e9d3e023458798e131b29dbfb3 Mon Sep 17 00:00:00 2001 From: Ostrzyciel Date: Wed, 17 Sep 2025 18:28:59 +0200 Subject: [PATCH 2/2] fix --- build.sbt | 1 - 1 file changed, 1 deletion(-) diff --git a/build.sbt b/build.sbt index 04f14e5..d30b04c 100644 --- a/build.sbt +++ b/build.sbt @@ -103,5 +103,4 @@ lazy val root = (project in file(".")) // Do a fast build if it's a dev build // For the release build, optimize for speed and make a build report graalVMNativeImageOptions := graalOptions, - graalVMNativeImageCommand := "/opt/graalvm_2025_09/bin/native-image", )