From b6fdb2a64a041b4a5d923b7fc370817da4dc85d2 Mon Sep 17 00:00:00 2001 From: apricityx Date: Wed, 16 Sep 2026 11:22:36 +0000 Subject: [PATCH 1/3] ci: allow manual workflow dispatch --- .github/workflows/build release.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/build release.yml b/.github/workflows/build release.yml index bc69bfe..12e94b1 100644 --- a/.github/workflows/build release.yml +++ b/.github/workflows/build release.yml @@ -1,6 +1,7 @@ name: Flutter Windows, Linux, macOS, and Android Release on: + workflow_dispatch: push: branches: ["main"] pull_request: From 416d1caf6ad99b19c363f702a353ca0b18fb9cc2 Mon Sep 17 00:00:00 2001 From: apricityx Date: Wed, 16 Sep 2026 11:39:38 +0000 Subject: [PATCH 2/3] ci: pin Windows build to VS 2022 runner image windows-latest now resolves to the VS 2026 (v18) image, which Flutter 3.29 does not recognize, so it falls back to the VS 2019 CMake generator and the build fails. Pin to windows-2025 (VS 2022) until Flutter is upgraded. --- .github/workflows/build release.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build release.yml b/.github/workflows/build release.yml index 12e94b1..eeb9330 100644 --- a/.github/workflows/build release.yml +++ b/.github/workflows/build release.yml @@ -9,7 +9,9 @@ on: jobs: build-windows: - runs-on: windows-latest + # windows-latest 已迁移到 VS 2026 (主版本 18),Flutter 3.29 只识别到 17, + # 会退化成 -G "Visual Studio 16 2019" 导致 CMake 失败。固定到带 VS 2022 的镜像。 + runs-on: windows-2025 steps: - name: Checkout repository From 5b6e1975b503bab2fdd5defbfd3ac077b1b390eb Mon Sep 17 00:00:00 2001 From: apricityx Date: Wed, 16 Sep 2026 11:47:18 +0000 Subject: [PATCH 3/3] ci: use windows-2022 runner (VS 2022) for Windows build windows-2025 also resolves to the VS 2026 (v18) image, which Flutter 3.29 cannot map to a CMake generator. windows-2022 still ships VS 2022 (v17). --- .github/workflows/build release.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build release.yml b/.github/workflows/build release.yml index eeb9330..307184f 100644 --- a/.github/workflows/build release.yml +++ b/.github/workflows/build release.yml @@ -9,9 +9,10 @@ on: jobs: build-windows: - # windows-latest 已迁移到 VS 2026 (主版本 18),Flutter 3.29 只识别到 17, - # 会退化成 -G "Visual Studio 16 2019" 导致 CMake 失败。固定到带 VS 2022 的镜像。 - runs-on: windows-2025 + # Flutter 3.29 只支持到 VS 2022(主版本 17);windows-latest 与 windows-2025 + # 现在都指向 VS 2026(18) 镜像,会退化成 -G "Visual Studio 16 2019" 而失败。 + # 待升级 Flutter(>= 3.41 才认识 VS 2026)后可去掉此固定。 + runs-on: windows-2022 steps: - name: Checkout repository