From 7228e935703cdaeafc4c9c68483d755bcc731360 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Sun, 30 Jun 2024 14:39:57 -0700 Subject: [PATCH] Publish WinRT sample with NAOT in CI pipeline --- .github/workflows/dotnet.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index d0ba2241c..c25c59157 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -316,6 +316,13 @@ jobs: - name: Publish ComputeSharp.NativeLibrary run: dotnet publish samples\ComputeSharp.NativeLibrary\ComputeSharp.NativeLibrary.csproj -r win-${{matrix.platform}} -v n + # Publish the WinRT component with NativeAOT as well + - if: matrix.platform == 'x64' + name: Publish ComputeSharp.NativeLibrary.WinRT + run: > + msbuild samples\ComputeSharp.NativeLibrary.WinRT\ComputeSharp.NativeLibrary.WinRT.csproj /restore -t:publish + /p:Configuration=Release /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} + # Download the NuGet packages generated in the previous job and use them # to build and run the sample project referencing them. This is used as # a test to ensure the NuGet packages work in a consuming project.