Skip to content
box

GitHub Action

Setup GraalVM action

v1 Latest version

Setup GraalVM action

box

Setup GraalVM action

Set up a specific version of GraalVM and add the command line tools to PATH

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Setup GraalVM action

uses: ayltai/setup-graalvm@v1

Learn more about this action in ayltai/setup-graalvm

Choose a version

GraalVM GitHub action

GitHub workflow status Code Quality Sonar Quality Gate Sonar Violations (short format) Code Coverage Sonar Coverage Maintainability Rating Reliability Rating Sonar Tech Debt Security Rating Vulnerabilities Maintenance Release License

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

Buy me a coffee

Usage

See action.yaml

Basic

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

Configuration

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.

Spring Boot applications

If you are building Spring Boot applications with GraalVM or GraalVM native image, you may consider using Spring GraalVM Native Gradle plugin.

License

MIT

References