summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaoyuren <13851610112@163.com>2026-07-30 10:29:24 +0800
committerhaoyuren <13851610112@163.com>2026-07-30 10:29:24 +0800
commit429d737f940a52ca4124f13f5911e6759d4b63bb (patch)
tree99f8e5bac0ee977ef798f421bb8d339b9755cf1c
parent6026c4191cfdaadd379565cfc064158d619f2fbc (diff)
Pin Windows CI to windows-2022 image
windows-latest moved to Visual Studio 2026 in June 2026; node-gyp cannot detect VS2026 yet (fails on v9, hangs on v11). Also add a 25-minute job timeout and electron-builder debug output. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
-rw-r--r--.github/workflows/release-windows.yml9
1 files changed, 8 insertions, 1 deletions
diff --git a/.github/workflows/release-windows.yml b/.github/workflows/release-windows.yml
index 3c0ee00..02d3071 100644
--- a/.github/workflows/release-windows.yml
+++ b/.github/workflows/release-windows.yml
@@ -14,7 +14,14 @@ permissions:
jobs:
windows:
- runs-on: windows-latest
+ # windows-latest ships Visual Studio 2026 since 2026-06, which node-gyp
+ # cannot detect yet (nodejs/node-gyp#3250) — pin to the VS2022 image.
+ runs-on: windows-2022
+ # Native rebuild + packaging normally takes <10 min — fail fast on hangs
+ timeout-minutes: 25
+ env:
+ DEBUG: electron-builder
+ npm_config_loglevel: info
steps:
- uses: actions/checkout@v4