From afec35c4f76127e652dbf36dab6e8e65459c8b04 Mon Sep 17 00:00:00 2001 From: BREW <81044362+b-re-w@users.noreply.github.com> Date: Thu, 5 Nov 2026 00:26:05 +0900 Subject: [PATCH] Fix: Point Gradle toolchain resolution at GRAALVM_HOME in native-image CI (#251) --- .github/workflows/desktop.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/desktop.yml b/.github/workflows/desktop.yml index 3956921f..cad58b5f 100644 --- a/.github/workflows/desktop.yml +++ b/.github/workflows/desktop.yml @@ -196,9 +196,13 @@ jobs: # Records Compose and skiko's configuration against the fork version this run uses, then builds # the image and runs it with JAVA_HOME and PYTHONHOME removed: 20 of 20 and no libjvm. + # `setup-graalvm` installs Liberica NIK under `GRAALVM_HOME` in the runner toolcache outside + # `/Users/runner/hostedtoolcache/Java_*`, so pass `org.gradle.java.installations.paths` + # explicitly instead of picking up the runner's pre-installed Temurin 25. - name: Build and run the native image run: > ./gradlew :python-multiplatform-compose:fixtures:notebook-e2e:notebookE2eNativeAgent :python-multiplatform-compose:fixtures:notebook-e2e:notebookE2eNativeRun -PpythonxComposeWheel="$WHEEL_DIR" + -Porg.gradle.java.installations.paths="$GRAALVM_HOME" --console=plain