setup-graalvm/action.yml

69 lines
2.4 KiB
YAML
Raw Normal View History

2022-01-03 08:43:40 +01:00
name: 'GitHub Action for GraalVM'
description: 'Set up a specific version of GraalVM Community Edition (CE) or Enterprise Edition (EE)'
author: 'GraalVM Community'
2022-01-03 08:43:40 +01:00
branding:
icon: 'terminal'
color: 'blue'
inputs:
version:
required: true
description: 'GraalVM version (release, latest, dev).'
gds-token:
required: false
description: 'Download token for the GraalVM Download Service. If provided, the action will set up GraalVM Enterprise Edition.'
2022-01-03 08:43:40 +01:00
java-version:
required: true
description: 'Java version (11 or 17, 8 or 16 for older releases).'
components:
required: false
2022-01-20 17:49:45 +01:00
description: 'Comma-separated list of GraalVM components to be installed.'
2022-01-03 08:43:40 +01:00
default: ''
github-token:
required: false
2022-01-20 17:49:45 +01:00
description: 'Set it to secrets.GITHUB_TOKEN to increase rate limits when accessing the GitHub API.'
2022-01-03 08:43:40 +01:00
default: ''
set-java-home:
required: false
2022-01-20 17:49:45 +01:00
description: 'Set $JAVA_HOME to the GraalVM installation. Default: true.'
2022-01-03 08:43:40 +01:00
default: 'true'
cache:
description: 'Name of the build platform to cache dependencies. It can be "maven", "gradle", or "sbt".'
required: false
2022-11-02 14:00:51 +01:00
check-for-updates:
required: false
description: 'Annotate jobs with update notifications, for example, when a new GraalVM release is available'
default: 'true'
2022-01-20 17:49:45 +01:00
native-image-musl:
required: false
description: 'Set up musl for static image building with GraalVM Native Image.'
default: 'false'
native-image-job-reports:
required: false
description: 'Post a job summary containing a Native Image build report.'
default: 'false'
native-image-pr-reports:
required: false
description: 'Post a comment containing a Native Image build report on pull requests.'
default: 'false'
2022-12-12 21:17:24 +01:00
mvn-settings-path:
description: 'Path to where the settings.xml file will be written. Default is ~/.m2.'
required: false
2022-11-18 10:16:58 +01:00
outputs:
cache-hit:
description: 'A boolean value to indicate an exact match was found for the primary key'
2022-01-03 08:43:40 +01:00
runs:
2022-12-12 21:17:24 +01:00
using: "composite"
steps:
- uses: ./dist
id: graalvm
- name: 'Install Java Development Kit'
uses: actions/setup-java@v3
with:
java-version: ${{ inputs.java-version }}
distribution: jdkfile
jdkFile: ${{ steps.graalvm.outputs.archive }}
cache: ${{ inputs.cache }}
settings-path: ${{ inputs.mvn-settings-path }}
- shell: bash
run: echo "GRAALVM_HOME=$JAVA_HOME" >> $GITHUB_ENV