Add caching for Gradle Build (#1914)

Caching reduces build duration by ~50%.
This commit is contained in:
Jeremy Epling 2021-10-11 22:24:14 -04:00 committed by GitHub
parent f1350111ca
commit 05f44bb181
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -13,11 +13,13 @@ jobs:
steps:
- uses: actions/checkout@v2
- name: Set up JDK 16
uses: actions/setup-java@v1
uses: actions/setup-java@v2
with:
java-version: 16
cache: 'gradle'
distribution: 'temurin'
- name: Build with Gradle
run: ./gradlew build -s
run: ./gradlew build -s --no-daemon
- uses: actions/upload-artifact@v2
name: Archive Reports
if: always()