graalvm / setup-graalvm

GitHub Action for setting up GraalVM distributions.
https://www.graalvm.org
Universal Permissive License v1.0
196 stars 28 forks source link

Native build error on windows and macOS suddenly #74

Closed GrapeBaBa closed 4 months ago

GrapeBaBa commented 11 months ago

I can't reopen the issue, removed the version still not works.

https://github.com/optimism-java/hildr/actions/runs/7231369944/workflow

fniephaus commented 11 months ago

It seems you are building with Gradle and caching is enabled, which you may want to clear. I'm not sure Gradle actually runs on JDK 21 already. Could you try running it on JDK 17 and then set GRAALVM_HOME to a GraalVM for JDK 21? Here's an example how that can be done: add set-java-home: 'false' to ensure the action does not overwrite a previously set JAVA_HOME.

GrapeBaBa commented 11 months ago

@fniephaus I can't get you, I use this template only adding cache https://github.com/graalvm/setup-graalvm?tab=readme-ov-file#quickstart-template.

GrapeBaBa commented 11 months ago

@fniephaus I can't get you, I use this template only adding cache https://github.com/graalvm/setup-graalvm?tab=readme-ov-file#quickstart-template.

Also after I change ./gradlew nativeCompile to native-image, it works fine. It should be an issue about graalvm gradle plugin.

fniephaus commented 4 months ago

Ok good! Feel free to file a ticket against the Native Build Tools at https://github.com/graalvm/native-build-tools/issues