Skip to content

Commit

Permalink
Start updating build
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewlock committed Oct 29, 2024
1 parent 6f787a2 commit 016bff1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tracer/build/_build/Build.Steps.cs
Original file line number Diff line number Diff line change
Expand Up @@ -180,11 +180,11 @@ Project[] ClrProfilerIntegrationTests

TargetFramework[] GetTestingFrameworks(bool isArm64) => (isArm64, IncludeAllTestFrameworks || RequiresThoroughTesting()) switch
{
(false, true) => new[] { TargetFramework.NET462, TargetFramework.NETCOREAPP2_1, TargetFramework.NETCOREAPP3_0, TargetFramework.NETCOREAPP3_1, TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET7_0, TargetFramework.NET8_0, },
(false, false) => new[] { TargetFramework.NET462, TargetFramework.NETCOREAPP3_1, TargetFramework.NET8_0, },
(false, true) => new[] { TargetFramework.NET462, TargetFramework.NETCOREAPP2_1, TargetFramework.NETCOREAPP3_0, TargetFramework.NETCOREAPP3_1, TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET7_0, TargetFramework.NET8_0, TargetFramework.NET9_0, },
(false, false) => new[] { TargetFramework.NET462, TargetFramework.NETCOREAPP3_1, TargetFramework.NET8_0, TargetFramework.NET9_0, },
// we only support linux-arm64 on .NET 5+, so we run a different subset of the TFMs for ARM64
(true, true) => new[] { TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET7_0, TargetFramework.NET8_0, },
(true, false) => new[] { TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET8_0, },
(true, true) => new[] { TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET7_0, TargetFramework.NET8_0, TargetFramework.NET9_0, },
(true, false) => new[] { TargetFramework.NET5_0, TargetFramework.NET6_0, TargetFramework.NET8_0, TargetFramework.NET9_0, },
};

string ReleaseBranchForCurrentVersion() => new Version(Version).Major switch
Expand Down
1 change: 1 addition & 0 deletions tracer/build/_build/TargetFramework.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public class TargetFramework : Enumeration
public static TargetFramework NET6_0 = new TargetFramework { Value = "net6.0" };
public static TargetFramework NET7_0 = new TargetFramework { Value = "net7.0" };
public static TargetFramework NET8_0 = new TargetFramework { Value = "net8.0" };
public static TargetFramework NET9_0 = new TargetFramework { Value = "net9.0" };

public static implicit operator string(TargetFramework framework)
{
Expand Down
2 changes: 2 additions & 0 deletions tracer/build/_build/_build.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<PackageReference Include="Perfolizer" Version="0.2.1" />
<PackageReference Include="Sep" Version="0.5.2" />
<PackageReference Include="ByteSize" Version="2.1.0" />
<!-- Enable binary serialization for .NET 9 -->
<PackageReference Include="System.Runtime.Serialization.Formatters" Version="9.0.0-*" Condition="$(USE_NATIVE_SDK_VERSION) != 'true'" />
</ItemGroup>

<!-- On it's own, since windows only and just used for notifications -->
Expand Down

0 comments on commit 016bff1

Please sign in to comment.