From 0fada8b16e2a25fb557911b97d07aae4ce2e8e6c Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 3 May 2021 14:17:18 +0200 Subject: [PATCH] Enabled WinUI projects build in CI --- .github/workflows/dotnet.yml | 38 ++++++++++++++++++++++++++++++++++-- 1 file changed, 36 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fa25ac2b..e3569231 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -19,7 +19,7 @@ jobs: run: dotnet build src\ComputeSharp\ComputeSharp.csproj -c Release shell: cmd - # Run all the unit tests referencing the ComputeSharp project directly. + # Run all the unit tests referencing the ComputeSharp project directly run-tests: if: success() needs: [build-project] @@ -57,7 +57,7 @@ jobs: run: dotnet test tests\ComputeSharp.Tests.SourceGenerators\ComputeSharp.Tests.SourceGenerators.csproj -v n -l "console;verbosity=detailed" shell: cmd - # Run all the local samples to ensure they build and run with no errors. + # Run all the local samples to ensure they build and run with no errors run-samples: if: success() needs: [run-tests] @@ -199,4 +199,38 @@ jobs: dotnet-version: 6.0.x - name: Run ComputeSharp.Tests.NativeLibrariesResolver run: dotnet test tests\ComputeSharp.Tests.NativeLibrariesResolver\ComputeSharp.Tests.NativeLibrariesResolver.csproj -v n -l "console;verbosity=detailed" + shell: cmd + + # Build the WinUI panel project + build-project-winui: + runs-on: windows-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Build + run: msbuild src\ComputeSharp.WinUI\ComputeSharp.WinUI.csproj -t:restore /property:Configuration=Release + shell: cmd + + # Build all the local WinUI samples to ensure they build with no errors + build-samples-winui: + if: success() + needs: [build-project-winui] + runs-on: windows-latest + steps: + - name: Git checkout + uses: actions/checkout@v2 + - name: Add msbuild to PATH + uses: microsoft/setup-msbuild@v1 + - name: Setup .NET SDK + uses: actions/setup-dotnet@v1 + with: + dotnet-version: 5.0.x + - name: Build ComputeSharp.Sample + run: msbuild samples\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI\ComputeSharp.SwapChain.WinUI.csproj -t:restore /property:Configuration=Release shell: cmd \ No newline at end of file