Use inbuilt setup-java for build caching.

This commit is contained in:
FireMaskterK 2021-10-31 18:51:45 +00:00
parent 8eff8a26e7
commit 89dcdf23a4
No known key found for this signature in database
GPG key ID: 49451E4482CC5BCD

View file

@ -21,13 +21,7 @@ jobs:
java-version: ${{ matrix.java }}
distribution: temurin
check-latest: true
- name: Cache Gradle dependencies
uses: actions/cache@v2.1.6
with:
path: ~/.gradle/caches
key: ${{ runner.os }}-gradle-${{ hashFiles('**/*.gradle') }}
restore-keys: ${{ runner.os }}-gradle
cache: "gradle"
- name: Run Build
run: chmod +x ./gradlew && ./gradlew build