diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 77d2b0ec..35b382fa 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -150,7 +150,7 @@ jobs: needs: [build-solution] strategy: matrix: - platform: [x64] + platform: [x64, arm64] runs-on: windows-2022 env: CI_RUNNER_SAMPLES_INTEGRATION_TESTS: true @@ -160,11 +160,13 @@ jobs: - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.1 - # Publish and run the NativeAOT CLI sample + # Publish the NativeAOT CLI sample - name: Publish ComputeSharp.SwapChain.Cli with NativeAOT run: > $env:COMPUTESHARP_SWAPCHAIN_CLI_PUBLISH_AOT='true'; dotnet publish samples\ComputeSharp.SwapChain.Cli\ComputeSharp.SwapChain.Cli.csproj -c Release -f net7.0 -r win-${{matrix.platform}} -v n + + # If on x64, also run it (this script will launch it and let it run for 2 seconds, before closing it) - if: matrix.platform == 'x64' name: Run ComputeSharp.SwapChain.Cli run: > @@ -183,11 +185,14 @@ jobs: path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net7.0\win-x64\publish\computesharp.cli.exe if-no-files-found: error - # Also publish the Win2D sample on .NET 7 (without NativeAOT, see https://github.com/dotnet/runtime/issues/84908) - - name: Publish ComputeSharp.SwapChain.D2D1.Cli + # Also publish the Win2D sample on .NET 7 (without NativeAOT, see https://github.com/dotnet/runtime/issues/84908). + - if: matrix.platform == 'x64' + name: Publish ComputeSharp.SwapChain.D2D1.Cli run: > msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj -t:restore,publish /p:Configuration=Release /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win10-${{matrix.platform}} /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True + + # 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 run: >