From acaedac8a7b7faf1d596b265cad7bbc68e6eff31 Mon Sep 17 00:00:00 2001 From: Parker Bibus Date: Fri, 21 Jul 2023 12:46:37 -0700 Subject: [PATCH] Copy tool build fix from performance repo to runtime repo. (#89323) This doesn't include any changes to non-runtime-perf infra and changes have been tested in the performance pipeline, merging. --- eng/pipelines/coreclr/templates/run-scenarios-job.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/eng/pipelines/coreclr/templates/run-scenarios-job.yml b/eng/pipelines/coreclr/templates/run-scenarios-job.yml index 4afea4b..8e14fa0 100644 --- a/eng/pipelines/coreclr/templates/run-scenarios-job.yml +++ b/eng/pipelines/coreclr/templates/run-scenarios-job.yml @@ -164,6 +164,17 @@ jobs: Write-Host "Set DOTNET_ROOT to $(PayloadDirectory)\dotnet" displayName: Explicitly set DOTNET_ROOT (Windows) condition: and(succeeded(), eq(variables['Agent.Os'], 'Windows_NT')) + # Set PATH + - script: | + echo "##vso[task.setvariable variable=PATH;]$(DOTNET_ROOT):$(PATH)" + echo "Set PATH to $(DOTNET_ROOT):$(PATH)" + displayName: Explicitly set PATH (Non-Windows) + condition: and(succeeded(), ne(variables['Agent.Os'], 'Windows_NT')) + - powershell: | + Write-Host "##vso[task.setvariable variable=PATH;]$(DOTNET_ROOT);$(PATH)" + Write-Host "Set PATH to $(DOTNET_ROOT);$(PATH)" + displayName: Explicitly set PATH (Windows) + condition: and(succeeded(), eq(variables['Agent.Os'], 'Windows_NT')) # build Startup - script: $(PayloadDirectory)\dotnet\dotnet.exe publish -c Release -o $(WorkItemDirectory)\Startup -f net7.0 -r win-$(Architecture) $(PerformanceDirectory)\src\tools\ScenarioMeasurement\Startup\Startup.csproj -p:DisableTransitiveFrameworkReferenceDownloads=true displayName: Build Startup tool (Windows) -- 2.7.4