From bf1ebe5be2f5ac1ce634572e9ff7bc88e8b1d6aa Mon Sep 17 00:00:00 2001 From: fufesou Date: Sat, 12 Sep 2026 14:31:16 +0800 Subject: [PATCH] Ci/native arm64 msbuild (#16170) * ci: use native ARM64 MSBuild for MSI packaging * ci: clarify MSBuild host and MSI target architectures --- .github/workflows/flutter-build.yml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/workflows/flutter-build.yml b/.github/workflows/flutter-build.yml index 9c3be51b6..83cacd1cb 100644 --- a/.github/workflows/flutter-build.yml +++ b/.github/workflows/flutter-build.yml @@ -374,6 +374,12 @@ jobs: - name: Add MSBuild to PATH uses: microsoft/setup-msbuild@6fb02220983dee41ce7ae257b6f4d8f9bf5ed4ce # v2 + with: + # Select the MSBuild process architecture; -p:Platform sets the MSI target. + # Native ARM64 tools give the compiler more address space for PCH files + # (C3859/C1076 were reported by HostX86\arm64\CL.exe). + # Keep the action's default x86 MSBuild for the existing x64 MSI job. + msbuild-architecture: ${{ matrix.job.arch == 'aarch64' && 'arm64' || 'x86' }} - name: Build msi # Builds the MSI for the matrix arch. res/msi (WiX v4 + native CustomActions) carries