mirror of
https://github.com/EngineHub/WorldEdit.git
synced 2024-12-15 04:41:37 +08:00
Add caching for Gradle Build (#1914)
Caching reduces build duration by ~50%.
This commit is contained in:
parent
f1350111ca
commit
05f44bb181
6
.github/workflows/gradle.yml
vendored
6
.github/workflows/gradle.yml
vendored
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user