2024-02-16 06:38:21 -05:00
|
|
|
# This composite action is included in other workflows to have a shared setup
|
|
|
|
# for java, gradle, caches, etc.
|
|
|
|
|
|
|
|
name: Prepare Lucene build
|
|
|
|
|
|
|
|
inputs:
|
|
|
|
java-version:
|
|
|
|
required: false
|
2024-02-29 06:16:29 -05:00
|
|
|
default: 21
|
2024-02-16 06:38:21 -05:00
|
|
|
description: "The default JDK version to set up."
|
|
|
|
|
|
|
|
java-distribution:
|
|
|
|
required: false
|
|
|
|
default: "temurin"
|
|
|
|
description: "The default JDK distribution type"
|
|
|
|
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- name: Set up Java (${{ inputs.java-distribution }}, ${{ inputs.java-version }})"
|
|
|
|
uses: actions/setup-java@v4
|
|
|
|
with:
|
|
|
|
distribution: ${{ inputs.java-distribution }}
|
|
|
|
java-version: ${{ inputs.java-version }}
|
|
|
|
java-package: jdk
|
|
|
|
|
|
|
|
# This includes "smart" caching of the wrapper and dependencies.
|
|
|
|
- name: Set up Gradle
|
|
|
|
uses: gradle/actions/setup-gradle@v3
|