f2f7ab77fa
Build Windows Only / build-windows (push) Failing after 19s
runner 主机已把 C:\Program Files\Git\bin 加入 Machine PATH(forgejo-runner
以 LocalSystem 运行,已重启生效,where bash 可解析),故撤掉 cf468f5 的
绝对路径 hack,provision/compile 两步回到 shell: bash + sh scripts/ci/...。
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Y2Wdwo7SmgBJU37cBrkhPK
43 lines
1.1 KiB
YAML
43 lines
1.1 KiB
YAML
name: Build Windows Only
|
||
|
||
# 仅构建 Windows 桌面版(不触发完整 deploy)。
|
||
# 触发方式:
|
||
# - 手动 workflow_dispatch(可填 ver)
|
||
# - 推送 winbuild* 轻量 tag(如 winbuild1),不与 deploy.yml 的 v* tag 冲突
|
||
on:
|
||
workflow_dispatch:
|
||
inputs:
|
||
ver:
|
||
description: '版本号 (如 v1.0.4)'
|
||
required: false
|
||
default: 'v1.0.4'
|
||
type: string
|
||
push:
|
||
tags:
|
||
- 'winbuild*'
|
||
|
||
jobs:
|
||
build-windows:
|
||
runs-on: windows
|
||
env:
|
||
GOPROXY: https://goproxy.cn,direct
|
||
PUB_HOSTED_URL: https://pub.flutter-io.cn
|
||
FLUTTER_STORAGE_BASE_URL: https://storage.flutter-io.cn
|
||
|
||
steps:
|
||
- uses: actions/checkout@v4
|
||
|
||
- name: Provision (idempotent — auto-runs if host not initialized)
|
||
shell: bash
|
||
run: sh scripts/ci/provision-windows.sh
|
||
|
||
- name: Compile (Flutter Windows)
|
||
shell: bash
|
||
run: sh scripts/ci/compile-windows.sh "${{ inputs.ver || 'v1.0.4' }}"
|
||
|
||
- name: Upload windows artifact
|
||
uses: actions/upload-artifact@v3
|
||
with:
|
||
name: jiu-windows
|
||
path: dist/
|