From 1c304f7c2430069bf0924bf4558e8109274a5d8e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Wed, 22 Nov 2023 12:51:24 +0100 Subject: [PATCH] Force release configuration for MSBuild publish --- .github/workflows/dotnet.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 6a65f2ee..f124a6d9 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -270,11 +270,11 @@ jobs: $env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT='false'; git clean -fdx; msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish - /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} + /p:Configuration=Release /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} # Just like for the DX12 sample, run it on x64 to validate it works correctly - if: matrix.platform == 'x64' - name: Run ComputeSharp.SwapChain.D2D1.Cli + name: Run ComputeSharp.SwapChain.D2D1.Cli (R2R) run: > $process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net8.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru); sleep -Seconds 2; @@ -291,11 +291,11 @@ jobs: $env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT='true'; git clean -fdx; msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish - /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} + /p:Configuration=Release /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} # Verify that the Win2D NativeAOT sample also runs correctly - if: matrix.platform == 'x64' - name: Run ComputeSharp.SwapChain.D2D1.Cli + name: Run ComputeSharp.SwapChain.D2D1.Cli (NativeAOT) run: > $process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net8.0-windows10.0.22621\win-x64\publish\computesharp.d2d1.cli.exe -PassThru); sleep -Seconds 2;