Add Win2D WASDK sample to CI tests
このコミットが含まれているのは:
1 親
bdc3679e56
コミット
6820ec181d
2ファイル変更
+26
-1
検索条件に一致するファイルはありません
@@ -134,6 +134,8 @@ jobs:
|
||||
steps:
|
||||
- name: Git checkout
|
||||
uses: actions/checkout@v3
|
||||
- name: Add msbuild to PATH
|
||||
uses: microsoft/[email protected]
|
||||
- name: Build and run ComputeSharp.Sample
|
||||
run: >
|
||||
dotnet build samples\ComputeSharp.Sample\ComputeSharp.Sample.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
@@ -147,7 +149,7 @@ jobs:
|
||||
dotnet build samples\ComputeSharp.ImageProcessing\ComputeSharp.ImageProcessing.csproj -c Release -f ${{matrix.framework}} -r win-x64 --no-self-contained -p:Platform=x64 -v n;
|
||||
samples\ComputeSharp.ImageProcessing\bin\x64\Release\${{matrix.framework}}\win-x64\ComputeSharp.ImageProcessing.exe
|
||||
|
||||
# Also publish the NativeAOT test when .NET 7 is used
|
||||
# Publish the NativeAOT test when .NET 7 is used
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Publish ComputeSharp.SwapChain.Cli with NativeAOT
|
||||
run: >
|
||||
@@ -169,6 +171,21 @@ 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)
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Publish ComputeSharp.SwapChain.D2D1.Cli
|
||||
run: >
|
||||
msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj -t:restore,publish /p:Configuration=Release
|
||||
/p:Platform=x64 /p:RuntimeIdentifier=win10-x64 /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True
|
||||
- if: matrix.framework == 'net7.0'
|
||||
name: Run ComputeSharp.SwapChain.D2D1.Cli
|
||||
run: >
|
||||
$process = (Start-Process samples\ComputeSharp.SwapChain.D2D1.Cli\bin\x64\Release\net7.0-windows10.0.22621\win10-x64\publish\computesharp.d2d1.cli.exe -PassThru);
|
||||
sleep -Seconds 2;
|
||||
$process.CloseMainWindow() | Out-Null;
|
||||
$process.WaitForExit();
|
||||
$process.ExitCode
|
||||
|
||||
# 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.
|
||||
|
||||
@@ -7,6 +7,14 @@
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
<Platforms>x64;ARM64</Platforms>
|
||||
<NoWarn>$(NoWarn);IDE0065</NoWarn>
|
||||
<AssemblyName>computesharp.d2d1.cli</AssemblyName>
|
||||
<ApplicationIcon>..\ComputeSharp.SwapChain.Cli\icon.ico</ApplicationIcon>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
|
||||
<!-- Workaround for WinRT.TypeExtensions.GetAuthoringMetadataType(Type) trim warning (see https://github.com/microsoft/CsWinRT/issues/1319) -->
|
||||
<NoWarn>$(NoWarn);IL2104;IL2026</NoWarn>
|
||||
</PropertyGroup>
|
||||
|
||||
<!-- Same optional NativeAOT property group as in ComputeSharp.SwapChain.Cli -->
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする