ci: 修复Windows构建工作流的格式问题并重新组织步骤
Some checks failed
Build Windows / ACT Windows Checkout Verification (push) Successful in 7h0m13s
Build Windows / 编译 libcore (Windows) (20.15.1) (push) Successful in 19m42s
Build Windows / build (push) Failing after 7h0m20s

This commit is contained in:
shanshanzhong 2025-11-06 23:57:22 -08:00
parent e0b1cec87d
commit 51ed02de1a

View File

@ -161,34 +161,39 @@ jobs:
if (Test-Path libcore/bin) {
Get-ChildItem libcore/bin -ErrorAction SilentlyContinue | Format-Table Name, Length
}
\n\n - name: Setup Flutter\n uses: subosito/flutter-action@v2\n with:\n flutter-version: '3.24.5'\n channel: 'stable'
- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
- name: Setup Flutter
uses: subosito/flutter-action@v2
with:
flutter-version: '3.24.5'
channel: 'stable'
- name: Get dependencies
run: flutter pub get
- name: Enable Windows desktop
run: flutter config --enable-windows-desktop
- name: Generate code
run: dart run build_runner build --delete-conflicting-outputs
- name: Get dependencies
run: flutter pub get
- name: Build Windows Debug
run: flutter build windows
- name: Generate code
run: dart run build_runner build --delete-conflicting-outputs
- name: Build Windows Release
run: flutter build windows --release
- name: Build Windows Debug
run: flutter build windows
- name: Upload Debug build artifacts
uses: actions/upload-artifact@v3
with:
name: windows-debug-build
path: build/windows/runner/Debug/
- name: Build Windows Release
run: flutter build windows --release
- name: Upload Debug build artifacts
uses: actions/upload-artifact@v3
with:
name: windows-debug-build
path: build/windows/runner/Debug/
- name: Upload Release build artifacts
uses: actions/upload-artifact@v3
with:
name: windows-release-build
path: build/windows/runner/Release/
- name: Upload Release build artifacts
uses: actions/upload-artifact@v3
with:
name: windows-release-build
path: build/windows/runner/Release/
# 本地act验证作业只验证 Git PATH 与 checkout/submodules
build-act-windows: