mirror of
https://github.com/gradle/gradle-build-action.git
synced 2024-12-26 00:32:08 -05:00
Disable cache-cleanup on Windows
It does not seem possible to use `find .. -exec ..` on Windows, so a node-only solution may be required.
This commit is contained in:
parent
fb549a8417
commit
cc60593845
2 changed files with 9 additions and 2 deletions
|
@ -7,7 +7,7 @@ on:
|
|||
type: string
|
||||
runner-os:
|
||||
type: string
|
||||
default: '["ubuntu-latest", "windows-latest", "macos-latest"]'
|
||||
default: '["ubuntu-latest", "macos-latest"]' # Windows is not yet supported
|
||||
download-dist:
|
||||
type: boolean
|
||||
default: false
|
||||
|
|
|
@ -48,7 +48,14 @@ export function isCacheDebuggingEnabled(): boolean {
|
|||
}
|
||||
|
||||
export function isCacheCleanupEnabled(): boolean {
|
||||
return core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER)
|
||||
const userEnabled = core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER)
|
||||
|
||||
if (userEnabled && process.platform === 'win32') {
|
||||
core.warning('Cache cleanup is not yet supported on Windows')
|
||||
return false
|
||||
}
|
||||
|
||||
return userEnabled
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue