Skip to content

Commit aaec718

Browse files
committed
[Infra] increase timeout and not use chocolatey on linux.
1 parent 44b2c51 commit aaec718

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Build/Nuke/Build.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
using System.Collections.Generic;
22
using System.IO;
33
using System.Linq;
4+
using System.Runtime.InteropServices;
45
using Nuke.Common;
56
using Nuke.Common.CI;
67
using Nuke.Common.CI.AzurePipelines;
@@ -17,7 +18,7 @@
1718
using static Nuke.Common.IO.FileSystemTasks;
1819
using static Nuke.Common.Tools.DotNet.DotNetTasks;
1920

20-
[CheckBuildProjectConfigurations]
21+
[CheckBuildProjectConfigurations(TimeoutInMilliseconds = 2000)]
2122
[UnsetVisualStudioEnvironmentVariables]
2223
[GitHubActions(
2324
"continuous",
@@ -41,7 +42,6 @@
4142
InvokedTargets = new[] { nameof(Test), nameof(TestCoreOnly), nameof(Pack) },
4243
NonEntryTargets = new[] { nameof(Restore) },
4344
ExcludedTargets = new[] { nameof(Clean), nameof(PackCoreOnly)})]
44-
4545
partial class Build : Nuke.Common.NukeBuild
4646
{
4747
/// Support plugins are available for:
@@ -73,6 +73,8 @@ partial class Build : Nuke.Common.NukeBuild
7373
.Before(Clean)
7474
.Executes(() =>
7575
{
76+
if (!RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
77+
return;
7678
if (AzurePipelines == null && GitHubActions == null)
7779
return;
7880
ChocolateyTasks.Chocolatey(" install dotnetcore-sdk --version=3.0.103");

0 commit comments

Comments
 (0)