From c3ee451c0bf58260941a575af82dc699c99bdec4 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 31 Oct 2021 18:00:49 +0100 Subject: [PATCH] Specified x64 platform in WinUI build script --- .github/workflows/dotnet.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 836b2917..ae8ea492 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -217,7 +217,7 @@ jobs: dotnet-version: 6.0.x include-prerelease: true - name: Build - run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /property:Configuration=Release + run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release /p:Platform=x64 shell: cmd # Build the WinUI project again to generate a NuGet package from it. @@ -239,16 +239,16 @@ jobs: dotnet-version: 6.0.x include-prerelease: true - name: Build - run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /property:Configuration=Release + run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /p:Configuration=Release /p:Platform=x64 shell: cmd - name: Pack - run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /property:Configuration=Release + run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:pack /p:Configuration=Release /p:Platform=x64 shell: cmd - name: Upload package artifact uses: actions/upload-artifact@v2 with: name: ComputeSharp.WinUI.nupkg - path: src\ComputeSharp.WinUI\bin\Release\*.nupkg + path: src\ComputeSharp.WinUI\bin\x64\Release\*.nupkg # Build all the local WinUI samples to ensure they build with no errors build-samples-winui: @@ -268,5 +268,5 @@ jobs: dotnet-version: 6.0.x include-prerelease: true - name: Build ComputeSharp.Sample - run: msbuild samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj -t:restore /property:Configuration=Release + run: msbuild samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj -t:restore /p:Configuration=Release /p:Platform=x64 shell: cmd \ No newline at end of file