2024-04-15 15:24:07 +02:00
|
|
|
name: "Setup build environment"
|
|
|
|
description: "Checks out code, sets up Java and Gradle with appropriate configuration"
|
|
|
|
inputs:
|
|
|
|
gradle-cache-encryption-key:
|
|
|
|
required: true
|
|
|
|
description: "Key used to encrypt Gradle build cache"
|
|
|
|
runs:
|
|
|
|
using: "composite"
|
|
|
|
steps:
|
|
|
|
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Gradle Wrapper Validation
|
2024-07-31 15:55:56 +02:00
|
|
|
uses: gradle/actions/wrapper-validation@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3
|
2024-04-15 15:24:07 +02:00
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
shell: bash
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
2024-07-31 15:55:56 +02:00
|
|
|
uses: gradle/actions/setup-gradle@d9c87d481d55275bb5441eef3fe0e46805f9ef70 # v3
|
2024-04-15 15:24:07 +02:00
|
|
|
with:
|
|
|
|
cache-encryption-key: ${{ inputs.gradle_cache_encryption_key }}
|