[CI] Fix build cache (#336)

This commit is contained in:
vvb2060 2021-03-11 22:31:05 +08:00 committed by GitHub
parent f881c3633a
commit a7ada14126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View File

@ -42,8 +42,11 @@ jobs:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: gradle-
key: gradle-core-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
gradle-manager-${{ hashFiles('**/*.gradle.kts') }}
gradle-core
gradle-
- name: Build with Gradle
run: |
echo 'org.gradle.caching=true' >> gradle.properties

View File

@ -41,8 +41,11 @@ jobs:
path: |
~/.gradle/caches
~/.gradle/wrapper
key: gradle-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: gradle-
key: gradle-manager-${{ hashFiles('**/*.gradle.kts') }}
restore-keys: |
gradle-core-${{ hashFiles('**/*.gradle.kts') }}
gradle-manager
gradle-
- name: Build with Gradle
id: buildRelease
run: |