Add gradle-build-action to GitHub Actions pipelines

Closes gh-11099
This commit is contained in:
Steve Riesenberg
2022-04-14 14:31:16 -05:00
committed by Steve Riesenberg
parent 5367524030
commit 9601efd341
5 changed files with 63 additions and 21 deletions

View File

@@ -17,12 +17,13 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: '17'
- name: Cache Gradle packages
- name: Setup Gradle
if: env.RUN_JOBS == 'true'
uses: actions/cache@v2
uses: gradle/gradle-build-action@v2
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
cache-read-only: true
env:
GRADLE_USER_HOME: ~/.gradle
- name: Build with Gradle
if: env.RUN_JOBS == 'true'
run: ./gradlew clean build --continue --scan