Skip to content

Commit

Permalink
Publish WinRT sample with NAOT in CI pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
Sergio0694 committed Jun 30, 2024
1 parent 6fed333 commit 7228e93
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 7228e93

Please sign in to comment.