diff --git a/.pipelines/v2/templates/job-build-project.yml b/.pipelines/v2/templates/job-build-project.yml index 57fdba6397..b05e8907ed 100644 --- a/.pipelines/v2/templates/job-build-project.yml +++ b/.pipelines/v2/templates/job-build-project.yml @@ -504,6 +504,14 @@ jobs: Remove-Item -Force -Recurse "$(JobOutputDirectory)/_appx" -ErrorAction:Ignore displayName: Re-pack the new CmdPal package after signing + - pwsh: | + $testsPath = "$(Build.SourcesDirectory)/$(BuildPlatform)/$(BuildConfiguration)/tests" + if (Test-Path $testsPath) { + Remove-Item -Path $testsPath -Recurse -Force + Write-Host "Removed tests folder to reduce signing workload: $testsPath" + } + displayName: Remove tests folder before signing + - template: steps-esrp-signing.yml parameters: displayName: Sign Core PowerToys