Julien Lebosquain
10 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
5 additions and
2 deletions
-
nukebuild/Build.cs
-
nukebuild/BuildParameters.cs
|
|
@ -20,6 +20,7 @@ using static Nuke.Common.Tools.VSWhere.VSWhereTasks; |
|
|
using static Serilog.Log; |
|
|
using static Serilog.Log; |
|
|
using MicroCom.CodeGenerator; |
|
|
using MicroCom.CodeGenerator; |
|
|
using NuGet.Configuration; |
|
|
using NuGet.Configuration; |
|
|
|
|
|
using Nuke.Common.CI.AzurePipelines; |
|
|
using Nuke.Common.IO; |
|
|
using Nuke.Common.IO; |
|
|
|
|
|
|
|
|
/* |
|
|
/* |
|
|
@ -79,6 +80,9 @@ partial class Build : NukeBuild |
|
|
ExecWait("dotnet workloads:", "dotnet", "workload list"); |
|
|
ExecWait("dotnet workloads:", "dotnet", "workload list"); |
|
|
Information("Processor count: " + Environment.ProcessorCount); |
|
|
Information("Processor count: " + Environment.ProcessorCount); |
|
|
Information("Available RAM: " + GC.GetGCMemoryInfo().TotalAvailableMemoryBytes / 0x100000 + "MB"); |
|
|
Information("Available RAM: " + GC.GetGCMemoryInfo().TotalAvailableMemoryBytes / 0x100000 + "MB"); |
|
|
|
|
|
|
|
|
|
|
|
if (Host is AzurePipelines azurePipelines) |
|
|
|
|
|
azurePipelines.UpdateBuildNumber(Parameters.Version); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
DotNetConfigHelper ApplySettingCore(DotNetConfigHelper c) |
|
|
DotNetConfigHelper ApplySettingCore(DotNetConfigHelper c) |
|
|
|
|
|
@ -94,8 +94,7 @@ public partial class Build |
|
|
IsRunningOnUnix = Environment.OSVersion.Platform == PlatformID.Unix || |
|
|
IsRunningOnUnix = Environment.OSVersion.Platform == PlatformID.Unix || |
|
|
Environment.OSVersion.Platform == PlatformID.MacOSX; |
|
|
Environment.OSVersion.Platform == PlatformID.MacOSX; |
|
|
IsRunningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); |
|
|
IsRunningOnWindows = RuntimeInformation.IsOSPlatform(OSPlatform.Windows); |
|
|
IsRunningOnAzure = Host is AzurePipelines || |
|
|
IsRunningOnAzure = Host is AzurePipelines; |
|
|
Environment.GetEnvironmentVariable("LOGNAME") == "vsts"; |
|
|
|
|
|
|
|
|
|
|
|
if (IsRunningOnAzure) |
|
|
if (IsRunningOnAzure) |
|
|
{ |
|
|
{ |
|
|
|