Configure sample publishing from .csproj file
このコミットが含まれているのは:
1 親
cf8f329ef9
コミット
e821b1da2d
2ファイル変更
+13
-2
検索条件に一致するファイルはありません
@@ -265,8 +265,10 @@ jobs:
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Publish ComputeSharp.SwapChain.D2D1.Cli
|
||||
run: >
|
||||
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}} /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True
|
||||
$env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_R2R='true';
|
||||
$env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT='false';
|
||||
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}}
|
||||
|
||||
# Just like for the DX12 sample, run it on x64 to validate it works correctly
|
||||
- if: matrix.platform == 'x64'
|
||||
@@ -283,6 +285,7 @@ jobs:
|
||||
- if: matrix.platform == 'x64'
|
||||
name: Publish ComputeSharp.SwapChain.D2D1.Cli with NativeAOT
|
||||
run: >
|
||||
$env:COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_R2R='false';
|
||||
$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
|
||||
|
||||
@@ -20,6 +20,14 @@
|
||||
<NoWarn>$(NoWarn);IL2104;IL2026</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Options for R2R publishing -->
|
||||
<PropertyGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_R2R)' == 'true'">
|
||||
<PublishReadyToRunComposite>true</PublishReadyToRunComposite>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<PublishTrimmed>true</PublishTrimmed>
|
||||
<SelfContained>true</SelfContained>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Same optional NativeAOT property group as in ComputeSharp.SwapChain.Cli -->
|
||||
<PropertyGroup Condition="'$(COMPUTESHARP_SWAPCHAIN_D2D1_PUBLISH_AOT)' == 'true'">
|
||||
<PublishAot>true</PublishAot>
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする