improve github action setup (#4718)
This commit is contained in:
parent
9bb1329665
commit
a366d49ad7
4 changed files with 32 additions and 16 deletions
18
.github/actions/setup/action.yml
vendored
Normal file
18
.github/actions/setup/action.yml
vendored
Normal 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' }}
|
||||
Loading…
Add table
Add a link
Reference in a new issue