mirror of
https://github.com/fromchat-messenger/app.git
synced 2026-09-22 19:15:05 +03:00
9f216e0655
Co-authored-by: Cursor <cursoragent@cursor.com>
30 lines
848 B
YAML
30 lines
848 B
YAML
name: Setup Java and Gradle
|
|
description: Temurin JDK 17 + Gradle wrapper with dependency and build cache
|
|
|
|
inputs:
|
|
java-architecture:
|
|
description: Optional JDK architecture (x64, arm64, …)
|
|
required: false
|
|
default: ""
|
|
|
|
runs:
|
|
using: composite
|
|
steps:
|
|
- uses: actions/setup-java@v4
|
|
if: ${{ inputs.java-architecture != '' && inputs.java-architecture != 'none' }}
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
architecture: ${{ inputs.java-architecture }}
|
|
- uses: actions/setup-java@v4
|
|
if: ${{ inputs.java-architecture == '' || inputs.java-architecture == 'none' }}
|
|
with:
|
|
distribution: temurin
|
|
java-version: "17"
|
|
|
|
- uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
gradle-version: wrapper
|
|
cache-read-only: false
|
|
add-job-summary: true
|