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:
|
2024-10-30 17:08:38 +01:00
|
|
|
- uses: actions/setup-java@8df1039502a15bceb9433410b1a100fbe190c53b # v4
|
2024-04-15 15:24:07 +02:00
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
|
|
|
|
- name: Copy CI gradle.properties
|
|
|
|
shell: bash
|
|
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
|
|
|
|
- name: Setup Gradle
|
2024-11-14 10:46:10 +01:00
|
|
|
uses: gradle/actions/setup-gradle@473878a77f1b98e2b5ac4af93489d1656a80a5ed # v4
|
2024-04-15 15:24:07 +02:00
|
|
|
with:
|
|
|
|
cache-encryption-key: ${{ inputs.gradle_cache_encryption_key }}
|