Unverified Commit cc605938 authored by Daz DeBoer's avatar Daz DeBoer
Browse files

Disable cache-cleanup on Windows

It does not seem possible to use `find .. -exec ..` on Windows,
so a node-only solution may be required.
parent fb549a84
Loading
Loading
Loading
Loading
+1 −1
Changes for .github/workflows/integ-test-cache-cleanup.yml: 1 added line, 1 removed line.
Original line number Diff line number Diff line
@@ -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
+8 −1
Changes for src/cache-utils.ts: 8 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -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
}

/**