From c9c17f31f3bbee3515b3b5923291cce5d298b1c2 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Tue, 21 Nov 2023 20:40:40 +0100 Subject: [PATCH] Publish the native library in CI script --- .github/workflows/dotnet.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index fd9a1775..a9589170 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -292,6 +292,10 @@ jobs: msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish /p:Configuration=Release /p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win-${{matrix.platform}} + # Publish the native library as a NativeAOT shared library + - name: Publish ComputeSharp.NativeLibrary + run: dotnet publish samples\ComputeSharp.NativeLibrary\ComputeSharp.NativeLibrary.csproj -r win-${{matrix.platform}} /p:NativeLib=Shared -v n + # 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.