From 09936b59adc39ea170ed85d53eba311d33103873 Mon Sep 17 00:00:00 2001 From: Solomon Blount <74916907+siblount@users.noreply.github.com> Date: Fri, 20 Dec 2024 17:21:32 -0500 Subject: [PATCH] update cake build for platform and configuration --- ci/Program.cs | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/ci/Program.cs b/ci/Program.cs index bc1d61d..7a357a3 100644 --- a/ci/Program.cs +++ b/ci/Program.cs @@ -170,11 +170,12 @@ public sealed class BuildTask : FrostingTask { public override void Run(BuildContext context) { - context.Log.Information("Building project..."); + context.Log.Information("Building project for platform {0} and configuration {1}...", context.Platform, context.BuildConfiguration); context.DotNetBuild(context.PathFinder.FindPath("src/"), new DotNetBuildSettings { Configuration = context.BuildConfiguration, NoIncremental = true, + ArgumentCustomization = args => args.Append("--property:Platform={0}", context.Platform) }); } } @@ -185,14 +186,15 @@ public sealed class TestTask : FrostingTask { public override void Run(BuildContext context) { - context.Log.Information("Running tests..."); + context.Log.Information("Running tests for platform {0} and configuration {1}...", context.Platform, context.BuildConfiguration); context.DotNetTest(context.PathFinder.FindPath("src/"), new DotNetTestSettings { Configuration = context.BuildConfiguration, NoBuild = true, NoRestore = true, - ArgumentCustomization = args => args.Append("--collect:\"Code Coverage\"") + ArgumentCustomization = args => args.Append("--property:Platform={0}", context.Platform) + .Append("--collect:\"Code Coverage\"") .Append("--filter TestCategory!=\"Performance\"") // Do not run performance tests. }); }