From cf8f329ef9f7184d5a4d4555959150ce5320c31e Mon Sep 17 00:00:00 2001 From: Sergio Pedri Date: Mon, 20 Nov 2023 16:47:48 +0100 Subject: [PATCH] Temporarily disable reflection-free mode in tests --- .github/workflows/dotnet.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet.yml b/.github/workflows/dotnet.yml index 7b69968d..e5923091 100644 --- a/.github/workflows/dotnet.yml +++ b/.github/workflows/dotnet.yml @@ -231,12 +231,13 @@ 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) + # 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. - 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 -c Release -r win-${{matrix.platform}} -v n