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-08-20 14:37:54 +02:00
|
|
|
- uses: actions/setup-java@6a0805fcefea3d4657a47ac4c165951e33482018 # 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-08-20 19:21:20 +02:00
|
|
|
uses: gradle/actions/setup-gradle@af1da67850ed9a4cedd57bfd976089dd991e2582 # v4
|
2024-04-15 15:24:07 +02:00
|
|
|
with:
|
|
|
|
cache-encryption-key: ${{ inputs.gradle_cache_encryption_key }}
|