38 lines
944 B
YAML
38 lines
944 B
YAML
name: Gradle build
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
BUILD_OPTION:
|
|
default: ""
|
|
description: "Gradle build option"
|
|
required: false
|
|
type: "string"
|
|
JAVA_DISTRIBUTION:
|
|
default: "temurin"
|
|
description: "Java distribution to use"
|
|
required: false
|
|
type: "string"
|
|
JAVA_VERSION:
|
|
default: "25"
|
|
description: "Java version to use"
|
|
required: false
|
|
type: "string"
|
|
|
|
jobs:
|
|
gradle-build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Checkout Repository
|
|
uses: actions/checkout@v4
|
|
with:
|
|
fetch-depth: 1
|
|
token: ${{ secrets.CI_BOT_TOKEN }}
|
|
- name: Set up JDK
|
|
uses: actions/setup-java@v4
|
|
with:
|
|
distribution: ${{ inputs.JAVA_DISTRIBUTION }}
|
|
java-version: ${{ inputs.JAVA_VERSION }}
|
|
- name: Run Gradle Build
|
|
run: ./gradlew build ${{ inputs.BUILD_OPTION }}
|