mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 14:47:58 +08:00
[ci] Attempt to make CI more reliable by using robocopy to delete (#20889)
This commit is contained in:
parent
58fbb28f94
commit
4474aba1e7
@ -116,6 +116,15 @@ $xmlFile = Join-Path $xmlResults "$Triplet.xml"
|
||||
|
||||
$failureLogs = Join-Path $ArtifactStagingDirectory 'failure-logs'
|
||||
|
||||
if ($IsWindows)
|
||||
{
|
||||
mkdir empty
|
||||
cmd /c "robocopy.exe empty `"$buildtreesRoot`" /MIR /NFL /NDL /NC /NP > nul"
|
||||
cmd /c "robocopy.exe empty `"$packagesRoot`" /MIR /NFL /NDL /NC /NP > nul"
|
||||
cmd /c "robocopy.exe empty `"$installRoot`" /MIR /NFL /NDL /NC /NP > nul"
|
||||
rmdir empty
|
||||
}
|
||||
|
||||
& "./vcpkg$executableExtension" x-ci-clean @commonArgs
|
||||
if ($LASTEXITCODE -ne 0)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user