From 82bc72e1e731e892366892288156421635434187 Mon Sep 17 00:00:00 2001 From: Daz DeBoer Date: Fri, 26 Aug 2022 06:22:28 -0600 Subject: [PATCH] Re-enable cache-cleanup on Windows --- .github/workflows/integ-test-cache-cleanup.yml | 2 +- src/cache-utils.ts | 9 +-------- 2 files changed, 2 insertions(+), 9 deletions(-) diff --git a/.github/workflows/integ-test-cache-cleanup.yml b/.github/workflows/integ-test-cache-cleanup.yml index b98e492..2b9d691 100644 --- a/.github/workflows/integ-test-cache-cleanup.yml +++ b/.github/workflows/integ-test-cache-cleanup.yml @@ -7,7 +7,7 @@ on: type: string runner-os: type: string - default: '["ubuntu-latest", "macos-latest"]' # Windows is not yet supported + default: '["ubuntu-latest", "windows-latest", "macos-latest"]' download-dist: type: boolean default: false diff --git a/src/cache-utils.ts b/src/cache-utils.ts index 7462f0c..6a0434f 100644 --- a/src/cache-utils.ts +++ b/src/cache-utils.ts @@ -48,14 +48,7 @@ export function isCacheDebuggingEnabled(): boolean { } export function isCacheCleanupEnabled(): boolean { - 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 + return core.getBooleanInput(CACHE_CLEANUP_ENABLED_PARAMETER) } /**