Build DX12 NativeAOT CLI sample on Arm64 as well

このコミットが含まれているのは:
Sergio Pedri committed 2023-04-25 20:05:45 +02:00
1 親 e212f6a0b4
コミット 5e6afc2365
1ファイル変更
+9 -4
+9 -4
ファイルの表示
@@ -150,7 +150,7 @@ jobs:
needs: [build-solution]
strategy:
matrix:
platform: [x64]
platform: [x64, arm64]
runs-on: windows-2022
env:
CI_RUNNER_SAMPLES_INTEGRATION_TESTS: true
@@ -160,11 +160,13 @@ jobs:
- name: Add msbuild to PATH
uses: microsoft/[email protected]
# Publish and run the NativeAOT CLI sample
# Publish the NativeAOT CLI sample
- name: Publish ComputeSharp.SwapChain.Cli with NativeAOT
run: >
$env:COMPUTESHARP_SWAPCHAIN_CLI_PUBLISH_AOT='true';
dotnet publish samples\ComputeSharp.SwapChain.Cli\ComputeSharp.SwapChain.Cli.csproj -c Release -f net7.0 -r win-${{matrix.platform}} -v n
# If on x64, also run it (this script will launch it and let it run for 2 seconds, before closing it)
- if: matrix.platform == 'x64'
name: Run ComputeSharp.SwapChain.Cli
run: >
@@ -183,11 +185,14 @@ 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)
- name: Publish ComputeSharp.SwapChain.D2D1.Cli
# 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: >
msbuild samples\ComputeSharp.SwapChain.D2D1.Cli\ComputeSharp.SwapChain.D2D1.Cli.csproj -t:restore,publish /p:Configuration=Release
/p:Platform=${{matrix.platform}} /p:RuntimeIdentifier=win10-${{matrix.platform}} /p:PublishSingleFile=True /p:SelfContained=True /p:PublishTrimmed=True
# Just like for the DX12 sample, run it on x64 to validate it works correctly
- if: matrix.platform == 'x64'
name: Run ComputeSharp.SwapChain.D2D1.Cli
run: >