Add gradle-cahce for github actions

This commit is contained in:
Lukas Rieger (Blue) 2022-01-09 14:27:21 +01:00
parent 6186b16e8d
commit 921ddcfbc3
No known key found for this signature in database
GPG Key ID: 2D09EC5ED2687FF2

View File

@ -13,6 +13,14 @@ jobs:
uses: actions/setup-java@v1
with:
java-version: 16
- uses: actions/cache@v2
with:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: "${{ runner.os }}-bluemap-${{ hashFiles('**/*.gradle*') }}"
restore-keys: |
${{ runner.os }}-bluemap-
- name: Build with Gradle
run: ./gradlew clean test build
- uses: actions/upload-artifact@v2