未验证 提交 b8123492 编写于 作者: A Andy Gocke 提交者: GitHub

Fix up benchmarks after arcade refactoring (#31847)

Moving the utility scripts around broke the compiler benchmarks,
since they referenced by file path.
上级 71f8f57a
...@@ -12,18 +12,17 @@ $ErrorActionPreference = "Stop" ...@@ -12,18 +12,17 @@ $ErrorActionPreference = "Stop"
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
try { try {
. (Join-Path $roslynDir "build/scripts/build-utils.ps1") . (Join-Path $roslynDir "eng/build-utils.ps1")
# Download dotnet if it isn't already available # Download dotnet if it isn't already available
Ensure-DotnetSdk Ensure-DotnetSdk
$reproPath = Join-Path $binariesDir "CodeAnalysisRepro" $reproPath = Join-Path $ArtifactsDir "CodeAnalysisRepro"
if (-not (Test-Path $reproPath)) { if (-not (Test-Path $reproPath)) {
$tmpFile = [System.IO.Path]::GetTempFileName() $tmpFile = [System.IO.Path]::GetTempFileName()
Invoke-WebRequest -Uri "https://roslyninfra.blob.core.windows.net/perf-artifacts/CodeAnalysisRepro.zip" -UseBasicParsing -OutFile $tmpFile Invoke-WebRequest -Uri "https://roslyninfra.blob.core.windows.net/perf-artifacts/CodeAnalysisRepro.zip" -UseBasicParsing -OutFile $tmpFile
[Reflection.Assembly]::LoadWithPartialName('System.IO.Compression.FileSystem') | Out-Null Unzip $tmpFile $ArtifactsDir
[IO.Compression.ZipFile]::ExtractToDirectory($tmpFile, $binariesDir)
} }
Exec-Command "dotnet" "run -c Release $reproPath" Exec-Command "dotnet" "run -c Release $reproPath"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册