From 0851e6d2a6e8c4f9f007aeaef10e1462fa0fd9f1 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sat, 24 Dec 2022 00:21:00 +0100 Subject: [PATCH 1/4] Enable unit tests on .NET 7 TFM --- .github/workflows/dotnet.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 9ee7743b..e0a28a76 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -70,7 +70,7 @@ jobs: needs: [build-solution] strategy: matrix: - framework: [net6.0, netcoreapp3.1, net472] + framework: [net7.0, net6.0, netcoreapp3.1, net472] runs-on: windows-2022 # Set the environment variable which is then looked up in ComputeSharp.Dynamic. From 70919ff83a6e0fe84c6894beff34338a731fea02 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 25 Dec 2022 10:24:45 +0100 Subject: [PATCH 2/4] Remove leftover commands in CI script --- .github/workflows/dotnet.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index e0a28a76..c7347cf0 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -135,11 +135,11 @@ jobs: - name: Build and run ComputeSharp.Sample.FSharp run: > dotnet build samples\ComputeSharp.Sample.FSharp\ComputeSharp.Sample.FSharp.fsproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n; - ${{matrix.command}} samples\ComputeSharp.Sample.FSharp\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.FSharp.exe + samples\ComputeSharp.Sample.FSharp\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.Sample.FSharp.exe - name: Build and run ComputeSharp.ImageProcessing.csproj run: > dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n; - ${{matrix.command}} samples\ComputeSharp.ImageProcessing\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.ImageProcessing.exe + samples\ComputeSharp.ImageProcessing\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.ImageProcessing.exe # Also publish the NativeAOT test when .NET 7 is used - if: matrix.framework == 'net7.0' From bd972fbb0f99719d63a5ca57981534de77ee1817 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 25 Dec 2022 10:29:19 +0100 Subject: [PATCH 3/4] Add missing .NET 7 TFMs to test projects --- ...puteSharp.D2D1.Tests.AssemblyLevelAttributes.csproj | 2 +- .../ComputeSharp.D2D1.Tests.csproj | 2 +- .../ComputeSharp.Tests.DeviceLost.csproj | 10 +++++----- ...ComputeSharp.Tests.DisableDynamicCompilation.csproj | 4 ++-- .../ComputeSharp.Tests.Internals.csproj | 4 ++-- tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj | 8 ++++---- 6 files changed, 15 insertions(+), 15 deletions(-) diff --git a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj index 665caa99..76766a37 100644 --- a/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj +++ b/tests/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes/ComputeSharp.D2D1.Tests.AssemblyLevelAttributes.csproj @@ -1,7 +1,7 @@ - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false $(NoWarn);CA1416 diff --git a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj index 5eb1f978..24781e4d 100644 --- a/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj +++ b/tests/ComputeSharp.D2D1.Tests/ComputeSharp.D2D1.Tests.csproj @@ -1,7 +1,7 @@ - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false $(NoWarn);CS0419;CA1416 diff --git a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj index 42af1773..dcf61143 100644 --- a/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj +++ b/tests/ComputeSharp.Tests.DeviceLost/ComputeSharp.Tests.DeviceLost.csproj @@ -1,7 +1,7 @@ - + - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false AnyCPU;x64;ARM64 $(NoWarn);CA1416 @@ -22,11 +22,11 @@ - - + + - + $(NoWarn);CS0649 diff --git a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj index 8bb3428d..b8029845 100644 --- a/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj +++ b/tests/ComputeSharp.Tests.DisableDynamicCompilation/ComputeSharp.Tests.DisableDynamicCompilation.csproj @@ -1,7 +1,7 @@ - + - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false AnyCPU;x64;ARM64 $(NoWarn);CA1416 diff --git a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj index bf6ce0b5..5e93a87d 100644 --- a/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj +++ b/tests/ComputeSharp.Tests.Internals/ComputeSharp.Tests.Internals.csproj @@ -1,7 +1,7 @@ - + - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false AnyCPU;x64;ARM64 $(NoWarn);CA1416 diff --git a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj index e2cc395d..28ed4a78 100644 --- a/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj +++ b/tests/ComputeSharp.Tests/ComputeSharp.Tests.csproj @@ -1,7 +1,7 @@ - net472;netcoreapp3.1;net6.0 + net472;netcoreapp3.1;net6.0;net7.0 false AnyCPU;x64;ARM64 $(NoWarn);CA1416 @@ -30,13 +30,13 @@ - - + + - + $(NoWarn);CS0649 From 7d9cbefc04cb1e24035e442b5eb509df1286ae1c Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 25 Dec 2022 10:29:34 +0100 Subject: [PATCH 4/4] Enable multi-targeting in global statements test project --- .../ComputeSharp.Tests.GlobalStatements.csproj | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj index d1c49db3..93a5f5ef 100644 --- a/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj +++ b/tests/ComputeSharp.Tests.GlobalStatements/ComputeSharp.Tests.GlobalStatements.csproj @@ -2,7 +2,7 @@ Exe - net6.0 + net472;net6.0;net7.0 AnyCPU;x64;ARM64 enable $(NoWarn);CA1416