File tree 2 files changed +14
-1
lines changed
System.CommandLine.Suggest
System.CommandLine.Suggest.Tests
2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 38
38
39
39
<Target Name =" DotnetSuggestIntegrationTestAssets" BeforeTargets =" Build" Condition =" '$(Configuration)' == 'Release'" >
40
40
41
+ <Exec IgnoreExitCode =" true" Command =" ldd --version 2>& 1 | grep -q musl" >
42
+ <Output TaskParameter =" ExitCode" PropertyName =" OSPlatformIsMuslCheck" />
43
+ </Exec >
44
+
45
+ <PropertyGroup >
46
+ <OSPlatformIsMusl Condition =" $(OSPlatformIsMuslCheck) == '0'" >true</OSPlatformIsMusl >
47
+ <OSPlatformIsMusl Condition =" $(OSPlatformIsMusl) == ''" >false</OSPlatformIsMusl >
48
+ </PropertyGroup >
49
+
41
50
<PropertyGroup >
42
51
<TestAssetsPath >
43
52
$([System.IO.Path]::GetFullPath('$(OutputPath)'))/TestAssets
56
65
<Rid >linux-x64</Rid >
57
66
</PropertyGroup >
58
67
68
+ <PropertyGroup Condition =" '$([System.Runtime.InteropServices.RuntimeInformation]::IsOSPlatform($([System.Runtime.InteropServices.OSPlatform]::Linux)))' == 'true' AND '$(OSPlatformIsMusl)' == 'true'" >
69
+ <Rid >linux-musl-x64</Rid >
70
+ </PropertyGroup >
71
+
59
72
<MSBuild BuildInParallel =" False" Projects =" ../System.CommandLine.Suggest/dotnet-suggest.csproj" Targets =" Restore" Properties =" UseAppHost=true;SelfContained=false;RuntimeIdentifier=$(Rid);ForceRestoreToEvaluateSeparately=1;Configuration=Release" >
60
73
</MSBuild >
61
74
Original file line number Diff line number Diff line change 6
6
<PackAsTool >true</PackAsTool >
7
7
<PackageId >dotnet-suggest</PackageId >
8
8
<ToolCommandName >dotnet-suggest</ToolCommandName >
9
- <PackAsToolShimRuntimeIdentifiers >win-x64;win-x86;osx-x64;linux-x64</PackAsToolShimRuntimeIdentifiers >
9
+ <PackAsToolShimRuntimeIdentifiers >win-x64;win-x86;osx-x64;linux-x64;linux-musl-x64 </PackAsToolShimRuntimeIdentifiers >
10
10
<PackagedShimOutputRootDirectory >$(OutputPath)</PackagedShimOutputRootDirectory >
11
11
12
12
<DotnetSuggestBuildNumber >.1</DotnetSuggestBuildNumber >
You can’t perform that action at this time.
0 commit comments