Add caching to workflow.

This commit is contained in:
Sangar
2020-12-08 23:22:13 +01:00
committed by GitHub
parent c3aa371187
commit ff69df12df

View File

@@ -22,5 +22,12 @@ jobs:
java-version: 1.8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle*') }}
restore-keys: ${{ runner.os }}-gradle-
- name: Build with Gradle
run: ./gradlew build