mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-27 01:02:11 -05:00
Cache downloaded Java Toolchains
Due to limitations with the way extracted entries are defined, a separate entry is defined for *nix and windows. Fixes #33
This commit is contained in:
parent
c61f5d87b4
commit
c157d0a332
2 changed files with 7 additions and 4 deletions
|
@ -62,9 +62,11 @@ inputs:
|
||||||
[
|
[
|
||||||
["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"],
|
["generated-gradle-jars", "caches/*/generated-gradle-jars/*.jar"],
|
||||||
["wrapper-zips", "wrapper/dists/*/*/*.zip"],
|
["wrapper-zips", "wrapper/dists/*/*/*.zip"],
|
||||||
["dependencies", "caches/modules-*/files-*/*/*/*/*/"],
|
["java-toolchains-win", "jdks/*.zip"],
|
||||||
["instrumented-jars", "caches/jars-*/*/"],
|
["java-toolchains-nix", "jdks/*.tar.gz"],
|
||||||
["kotlin-dsl", "caches/*/kotlin-dsl/*/*/"]
|
["dependencies", "caches/modules-*/files-*/*/*/*/*"],
|
||||||
|
["instrumented-jars", "caches/jars-*/*"],
|
||||||
|
["kotlin-dsl", "caches/*/kotlin-dsl/*/*"]
|
||||||
]
|
]
|
||||||
|
|
||||||
outputs:
|
outputs:
|
||||||
|
|
|
@ -229,7 +229,8 @@ export class GradleUserHomeCache extends AbstractCache {
|
||||||
}
|
}
|
||||||
|
|
||||||
private isBundlePattern(pattern: string): boolean {
|
private isBundlePattern(pattern: string): boolean {
|
||||||
return pattern.endsWith('*')
|
// If pattern ends with `/*`, then we cache as a "bundle": all of the matching files in a single cache entry
|
||||||
|
return pattern.endsWith(`${path.sep}*`)
|
||||||
}
|
}
|
||||||
|
|
||||||
private async collectCacheResults(processes: Promise<ExtractedCacheEntry>[]): Promise<ExtractedCacheEntry[]> {
|
private async collectCacheResults(processes: Promise<ExtractedCacheEntry>[]): Promise<ExtractedCacheEntry[]> {
|
||||||
|
|
Loading…
Reference in a new issue