From 95df2ee9f34f994212a2274e04fc0e2284a2fe1e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 11 Nov 2026 18:57:55 -0600 Subject: [PATCH] [ci] Try size optimization in the x86 MSVC job Use Meson optimization=1 (/O1) for x86 while retaining optimization=3 (/O2 /Gw) for amd64. Keep the two existing jobs and their tests, and set b_ndebug=true explicitly to preserve the previous release assertion setting when the x86 build type becomes custom. This is a CI compile-time experiment; dependency-prefix builds remain release builds and the amd64 job retains optimized MSVC coverage. Validation: actionlint, option/matrix checks, and meson test -C build (302 passed, one skipped). Native compiler timing remains for CI. Assisted-by: OpenAI Codex --- .github/workflows/msvc.yml | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.github/workflows/msvc.yml b/.github/workflows/msvc.yml index baba0afba..a55e0e0db 100644 --- a/.github/workflows/msvc.yml +++ b/.github/workflows/msvc.yml @@ -26,9 +26,11 @@ jobs: - name: msvc-2025-x86 os: windows-2025 ARCH: x86 + OPTIMIZATION: 1 - name: msvc-2025-amd64 os: windows-2025 ARCH: amd64 + OPTIMIZATION: 3 name: ${{ matrix.name }} steps: @@ -88,6 +90,8 @@ jobs: meson setup build ` --wrap-mode=nofallback ` --buildtype=release ` + -Doptimization=${{ matrix.OPTIMIZATION }} ` + -Db_ndebug=true ` -Dglib=enabled ` -Dcairo=disabled ` -Dicu=disabled `