Misc build updates

This commit is contained in:
Alex Barney 2020-02-29 01:18:10 -07:00
parent 4d8ace968f
commit 7ce9ea09e6
6 changed files with 8 additions and 6 deletions

View file

@ -1 +1 @@
3.1.100 3.1.101

View file

@ -326,6 +326,7 @@ namespace LibHacBuild
.After(Compile) .After(Compile)
.Executes(BuildNative); .Executes(BuildNative);
// ReSharper disable once UnusedMember.Local
Target AppVeyorBuild => _ => _ Target AppVeyorBuild => _ => _
.DependsOn(Zip, Native, Publish) .DependsOn(Zip, Native, Publish)
.Unlisted() .Unlisted()
@ -335,6 +336,7 @@ namespace LibHacBuild
.DependsOn(Test, Zip) .DependsOn(Test, Zip)
.Executes(PrintResults); .Executes(PrintResults);
// ReSharper disable once UnusedMember.Local
Target Full => _ => _ Target Full => _ => _
.DependsOn(Sign, Native) .DependsOn(Sign, Native)
.Executes(PrintResults); .Executes(PrintResults);
@ -372,7 +374,7 @@ namespace LibHacBuild
if (EnvironmentInfo.IsUnix && !Untrimmed) if (EnvironmentInfo.IsUnix && !Untrimmed)
{ {
File.Copy(CliNativeExe, CliNativeExe + "_unstripped"); File.Copy(CliNativeExe, CliNativeExe + "_unstripped", true);
ProcessTasks.StartProcess("strip", CliNativeExe).AssertZeroExitCode(); ProcessTasks.StartProcess("strip", CliNativeExe).AssertZeroExitCode();
} }

View file

@ -7,9 +7,9 @@ using System.Security.Cryptography;
using System.Text; using System.Text;
using System.Xml.Linq; using System.Xml.Linq;
using ICSharpCode.SharpZipLib.Zip; using ICSharpCode.SharpZipLib.Zip;
using Nuke.Common.IO;
using Nuke.Common.Tools.NuGet; using Nuke.Common.Tools.NuGet;
using static Nuke.Common.IO.FileSystemTasks; using static Nuke.Common.IO.FileSystemTasks;
using static Nuke.Common.IO.PathConstruction;
namespace LibHacBuild namespace LibHacBuild
{ {

View file

@ -13,7 +13,7 @@
<PackageDownload Include="GitVersion.Tool" Version="[5.1.3]" /> <PackageDownload Include="GitVersion.Tool" Version="[5.1.3]" />
<PackageReference Include="CsvHelper" Version="15.0.0" /> <PackageReference Include="CsvHelper" Version="15.0.0" />
<PackageReference Include="NuGet.CommandLine" Version="5.4.0" /> <PackageReference Include="NuGet.CommandLine" Version="5.4.0" />
<PackageReference Include="Nuke.Common" Version="0.23.4" /> <PackageReference Include="Nuke.Common" Version="0.24.2" />
<PackageReference Include="SharpZipLib" Version="1.2.0" /> <PackageReference Include="SharpZipLib" Version="1.2.0" />
</ItemGroup> </ItemGroup>

View file

@ -32,7 +32,7 @@
<RootAllApplicationAssemblies>false</RootAllApplicationAssemblies> <RootAllApplicationAssemblies>false</RootAllApplicationAssemblies>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" $(BuildType.StartsWith('native')) and '$(BuildType)' != 'native-untrimmed' "> <ItemGroup Condition=" $(BuildType.StartsWith('native')) and '$(OS)' == 'Windows_NT' and '$(BuildType)' != 'native-untrimmed' ">
<IlcArg Include="--removefeature:EventSource" /> <IlcArg Include="--removefeature:EventSource" />
</ItemGroup> </ItemGroup>

View file

@ -7,7 +7,7 @@
</PropertyGroup> </PropertyGroup>
<ItemGroup> <ItemGroup>
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.4.0" /> <PackageReference Include="Microsoft.NET.Test.Sdk" Version="16.5.0" />
<PackageReference Include="xunit.core" Version="2.4.1" /> <PackageReference Include="xunit.core" Version="2.4.1" />
<PackageReference Include="xunit.analyzers" Version="0.10.0" /> <PackageReference Include="xunit.analyzers" Version="0.10.0" />
<PackageReference Include="xunit.assert.source" Version="2.4.1" /> <PackageReference Include="xunit.assert.source" Version="2.4.1" />