ci: Clean artifacts after individual regression tests

This commit is contained in:
Jérôme Laban 2024-04-16 07:34:23 -04:00 коммит произвёл GitHub
Родитель fe26b2f27d
Коммит 47795004fb
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
2 изменённых файлов: 22 добавлений и 0 удалений

Просмотреть файл

@ -79,7 +79,11 @@ for($i = 0; $i -lt $projects.Length; $i++)
dotnet build $debug "$projectPath" $projectOptions dotnet build $debug "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
dotnet clean $debug
Write-Host "Building Release $projectPath with $projectOptions" Write-Host "Building Release $projectPath with $projectOptions"
dotnet build $release "$projectPath" $projectOptions dotnet build $release "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
dotnet clean $release
} }

Просмотреть файл

@ -10,6 +10,11 @@ function Assert-ExitCodeIsZero()
} }
} }
function CleanupTree()
{
git clean -fdx
}
$default = @('/ds', '/v:m', '/p:UseDotNetNativeToolchain=false', '/p:PackageCertificateKeyFile=') $default = @('/ds', '/v:m', '/p:UseDotNetNativeToolchain=false', '/p:PackageCertificateKeyFile=')
if ($IsWindows) if ($IsWindows)
@ -69,6 +74,8 @@ if ($IsWindows)
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
} }
CleanupTree
popd popd
$dotnetBuildNet6Configurations = $dotnetBuildNet6Configurations =
@ -109,6 +116,8 @@ if ($IsWindows)
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
} }
CleanupTree
popd popd
# XAML Trimming build smoke test # XAML Trimming build smoke test
@ -158,6 +167,7 @@ if ($IsWindows)
} }
} }
CleanupTree
## Tests Per versions of uno ## Tests Per versions of uno
if ($IsWindows) if ($IsWindows)
@ -284,9 +294,13 @@ for($i = 0; $i -lt $projects.Length; $i++)
dotnet build $debug "$projectPath" $projectOptions dotnet build $debug "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
dotnet clean $debug
Write-Host "NetCore Building Release $projectPath with $projectOptions" Write-Host "NetCore Building Release $projectPath with $projectOptions"
dotnet build $release "$projectPath" $projectOptions dotnet build $release "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
dotnet clean $release
} }
else else
{ {
@ -296,9 +310,13 @@ for($i = 0; $i -lt $projects.Length; $i++)
& $msbuild $debug /r "$projectPath" $projectOptions & $msbuild $debug /r "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
& $msbuild $debug /t:Clean
Write-Host "MSBuild Building Release $projectPath with $projectOptions" Write-Host "MSBuild Building Release $projectPath with $projectOptions"
& $msbuild $release /r "$projectPath" $projectOptions & $msbuild $release /r "$projectPath" $projectOptions
Assert-ExitCodeIsZero Assert-ExitCodeIsZero
& $msbuild $release /t:Clean
} }
} }
} }