From 387ca0e169a0cc4bf209c0516f933108cccf9382 Mon Sep 17 00:00:00 2001 From: Adam Sitnik Date: Wed, 24 Aug 2022 11:59:08 +0200 Subject: [PATCH] fix the CI (#2079) * set ErrorOnDuplicatePublishOutputFiles to false to stop getting "error NETSDK1152: Found multiple publish output files with the same relative path" about "xunit.runner.json" files * we can't target net6.0 and use .NET 7 ILCompiler anymore (#2080) --- src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs | 1 + tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs b/src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs index cf287b861b..8b87622630 100644 --- a/src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs +++ b/src/BenchmarkDotNet/Toolchains/NativeAot/Generator.cs @@ -137,6 +137,7 @@ private string GenerateProjectForNuGetBuild(BuildPartition buildPartition, Artif {ilcGenerateCompleteTypeMetadata} {ilcGenerateStackTraceData} false + false false {GetInstructionSetSettings(buildPartition)} diff --git a/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs b/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs index 9382436c9d..ee1fc2e0bb 100644 --- a/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs +++ b/tests/BenchmarkDotNet.IntegrationTests/NativeAotTests.cs @@ -23,6 +23,8 @@ public void LatestNativeAotVersionIsSupported() return; if (ContinuousIntegration.IsAppVeyorOnWindows()) // too time consuming for AppVeyor (1h limit) return; + if (NativeAotRuntime.GetCurrentVersion().RuntimeMoniker < RuntimeMoniker.NativeAot70) // we can't target net6.0 and use .NET 7 ILCompiler anymore (#2080) + return; var toolchain = NativeAotToolchain.CreateBuilder().UseNuGet().IlcInstructionSet(IsAvx2Supported() ? "avx2" : "").ToToolchain();