improve github action setup (#4718)

This commit is contained in:
Konrad Pozniak 2024-10-10 16:31:34 +02:00 committed by GitHub
commit a366d49ad7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 32 additions and 16 deletions

18
.github/actions/setup/action.yml vendored Normal file
View file

@ -0,0 +1,18 @@
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' }}