Build Win2D CLI sample with NativeAOT in CI script
このコミットが含まれているのは:
1 親
04a3532f9a
コミット
461e7d3a33
2ファイル変更
+13
-1
検索条件に一致するファイルはありません
@@ -274,7 +274,7 @@ 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).
|
||||
# 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: >
|
||||
@@ -291,6 +291,15 @@ jobs:
|
||||
$process.WaitForExit();
|
||||
if ($process.ExitCode -lt 0) { throw $process.ExitCode; }
|
||||
return $process.ExitCode;
|
||||
|
||||
# Publish the Win2D sample with NativeAOT (just verifying the build, can't run this yet, see above)
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Publish ComputeSharp.SwapChain.D2D1.Cli with NativeAOT
|
||||
run: >
|
||||
$env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT='true';
|
||||
git clean -fdx;
|
||||
msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj /restore -t:publish /p:Configuration=Release
|
||||
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win10-${{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
|
||||
|
||||
@@ -22,6 +22,9 @@
|
||||
<UseSystemResourceKeys>true</UseSystemResourceKeys>
|
||||
<InvariantGlobalization>true</InvariantGlobalization>
|
||||
<IlcOptimizationPreference>Speed</IlcOptimizationPreference>
|
||||
|
||||
<!-- Workaround for WinRT.Runtime and System.Linq.Expressions producing trim warnings -->
|
||||
<NoWarn>$(NoWarn);IL3053</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Also include the .rd.xml file to fix some NativeAOT issues with CsWinRT -->
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする