18 lines
569 B
YAML
18 lines
569 B
YAML
name: 'Setup build environment'
|
|
description: 'Sets up an environment for building Tusky'
|
|
runs:
|
|
using: "composite"
|
|
steps:
|
|
- uses: actions/setup-java@v4
|
|
with:
|
|
java-version: '21'
|
|
distribution: 'temurin'
|
|
|
|
- name: Copy CI gradle.properties
|
|
shell: bash
|
|
run: mkdir -p ~/.gradle ; cp .github/ci-gradle.properties ~/.gradle/gradle.properties
|
|
|
|
- name: Gradle Build Action
|
|
uses: gradle/actions/setup-gradle@v4
|
|
with:
|
|
cache-read-only: ${{ github.ref != 'refs/heads/main' && github.ref != 'refs/heads/develop' }}
|