From 7f999a0bcbf0c2f36d1bf27d934428752b2438f9 Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Thu, 23 Nov 2023 18:49:33 +0100 Subject: [PATCH] Resume reflection-free publish test in CI script --- .github/workflows/dotnet.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7ec74a5b..026d17bb 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -231,13 +231,12 @@ jobs: path: samples\ComputeSharp.SwapChain.Cli\bin\Release\net8.0\win-x64\publish\computesharp.cli.exe if-no-files-found: error - # Publish the NativeAOT CLI sample (optimized for size, and reflection-free). - # Temporarily skip COMPUTESHARP_SWAPCHAIN_CLI_DISABLE_REFLECTION unti code is - # refactored to replace typeof(T).GUID with hardcoded IIDs, or it won't work. + # Publish the NativeAOT CLI sample (optimized for size, and reflection-free) - name: Publish ComputeSharp.SwapChain.Cli with NativeAOT (size) run: > $env:COMPUTESHARP_SWAPCHAIN_CLI_PUBLISH_AOT='true'; $env:COMPUTESHARP_SWAPCHAIN_CLI_SIZE_OPTIMIZED='true'; + $env:COMPUTESHARP_SWAPCHAIN_CLI_DISABLE_REFLECTION='true'; git clean -fdx; dotnet publish samples\ComputeSharp.SwapChain.Cli\ComputeSharp.SwapChain.Cli.csproj -r win-${{matrix.platform}} -v n