File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 11using System . Collections . Generic ;
22using System . IO ;
33using System . Linq ;
4+ using System . Runtime . InteropServices ;
45using Nuke . Common ;
56using Nuke . Common . CI ;
67using Nuke . Common . CI . AzurePipelines ;
1718using static Nuke . Common . IO . FileSystemTasks ;
1819using static Nuke . Common . Tools . DotNet . DotNetTasks ;
1920
20- [ CheckBuildProjectConfigurations ]
21+ [ CheckBuildProjectConfigurations ( TimeoutInMilliseconds = 2000 ) ]
2122[ UnsetVisualStudioEnvironmentVariables ]
2223[ GitHubActions (
2324 "continuous" ,
4142 InvokedTargets = new [ ] { nameof ( Test ) , nameof ( TestCoreOnly ) , nameof ( Pack ) } ,
4243 NonEntryTargets = new [ ] { nameof ( Restore ) } ,
4344 ExcludedTargets = new [ ] { nameof ( Clean ) , nameof ( PackCoreOnly ) } ) ]
44-
4545partial 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" ) ;
You can’t perform that action at this time.
0 commit comments