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:
Daz DeBoer 2022-08-25 19:20:08 -06:00
parent fb549a8417
commit cc60593845
No known key found for this signature in database
GPG key ID: DD6B9F0B06683D5D
2 changed files with 9 additions and 2 deletions

View file

@ -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

View file

@ -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
}
/**