Skip to content

Commit 8662fa2

Browse files
committed
Only install the daily SDK for benchmarks
1 parent e580465 commit 8662fa2

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

Runner/Jobs/BenchmarkLibrariesJob.cs

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ protected override async Task RunJobCoreAsync()
3232
{
3333
await clonePerformanceTask;
3434

35-
PendingTasks.Enqueue(Task.Run(InstallDotnetSdksAsync));
35+
PendingTasks.Enqueue(DotnetHelpers.InstallDotnetDailySdkAsync(this, GetPerformanceDotnetVersion(), DotnetInstallDir));
3636

3737
coreRuns = await DownloadCoreRootsAsync(entries);
3838
}
@@ -65,20 +65,14 @@ protected override async Task RunJobCoreAsync()
6565
await JitDiffJob.BuildAndCopyRuntimeBranchBitsAsync(this, "pr", uploadArtifacts: false, buildChecked: false, canSkipRebuild: false);
6666
}
6767

68-
await InstallDotnetSdksAsync();
68+
await DotnetHelpers.InstallDotnetDailySdkAsync(this, GetPerformanceDotnetVersion(), DotnetInstallDir);
6969

7070
coreRuns = ["artifacts-main/corerun", "artifacts-pr/corerun"];
7171
}
7272

7373
await WaitForPendingTasksAsync();
7474

7575
await RunBenchmarksAsync(coreRuns);
76-
77-
async Task InstallDotnetSdksAsync()
78-
{
79-
await DotnetHelpers.InstallDotnetSdkAsync(this, "performance/global.json", DotnetInstallDir);
80-
await DotnetHelpers.InstallDotnetDailySdkAsync(this, GetPerformanceDotnetVersion(), DotnetInstallDir);
81-
}
8276
}
8377

8478
private async Task CloneDotnetPerformanceAndSetupToolsAsync()

0 commit comments

Comments
 (0)