This action sets up a GraalVM environment for use in GitHub Actions by:
- downloading and caching a requested version of GraalVM and adding to
PATH
- optionally downloading GraalVM Native Image
- registering problem matchers for error output
See action.yaml
steps:
- uses: actions/checkout@v2
- uses: ayltai/setup-graalvm@v1
with:
java-version: 11
graalvm-version: 21.1.0
native-image: true
- run: java -version
Property | Required | Default | Description |
---|---|---|---|
java-version |
Yes | A major Java version. Only 8 , 11 and 16 (targeting GraalVM v21.1.0) are supported. |
|
graalvm-version |
Yes | A GraalVM release. Supported values are 21.2.0 , 21.1.0 , 21.0.0.2 , 21.0.0 , 20.3.2 , 20.3.1.2 , 20.3.1 , 20.3.0 , 20.2.0 , 20.1.0 , 20.0.1 , 20.0.0 , 19.3.2 , 19.3.1 , 19.3.0.2 and 19.3.0 . See GraalVM releases |
|
native-image |
No | false |
true to download GraalVM native-image . |
If you are building Spring Boot applications with GraalVM or GraalVM native image, you may consider using Spring GraalVM Native Gradle plugin.