ci: 修复Windows构建工作流的格式问题并重新组织步骤
This commit is contained in:
parent
e0b1cec87d
commit
51ed02de1a
@ -161,34 +161,39 @@ jobs:
|
|||||||
if (Test-Path libcore/bin) {
|
if (Test-Path libcore/bin) {
|
||||||
Get-ChildItem libcore/bin -ErrorAction SilentlyContinue | Format-Table Name, Length
|
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
|
- name: Setup Flutter
|
||||||
run: flutter config --enable-windows-desktop
|
uses: subosito/flutter-action@v2
|
||||||
|
with:
|
||||||
|
flutter-version: '3.24.5'
|
||||||
|
channel: 'stable'
|
||||||
|
|
||||||
- name: Get dependencies
|
- name: Enable Windows desktop
|
||||||
run: flutter pub get
|
run: flutter config --enable-windows-desktop
|
||||||
|
|
||||||
- name: Generate code
|
- name: Get dependencies
|
||||||
run: dart run build_runner build --delete-conflicting-outputs
|
run: flutter pub get
|
||||||
|
|
||||||
- name: Build Windows Debug
|
- name: Generate code
|
||||||
run: flutter build windows
|
run: dart run build_runner build --delete-conflicting-outputs
|
||||||
|
|
||||||
- name: Build Windows Release
|
- name: Build Windows Debug
|
||||||
run: flutter build windows --release
|
run: flutter build windows
|
||||||
|
|
||||||
- name: Upload Debug build artifacts
|
- name: Build Windows Release
|
||||||
uses: actions/upload-artifact@v3
|
run: flutter build windows --release
|
||||||
with:
|
|
||||||
name: windows-debug-build
|
|
||||||
path: build/windows/runner/Debug/
|
|
||||||
|
|
||||||
- name: Upload Release build artifacts
|
- name: Upload Debug build artifacts
|
||||||
uses: actions/upload-artifact@v3
|
uses: actions/upload-artifact@v3
|
||||||
with:
|
with:
|
||||||
name: windows-release-build
|
name: windows-debug-build
|
||||||
path: build/windows/runner/Release/
|
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/
|
||||||
|
|
||||||
# 本地(act)验证作业:只验证 Git PATH 与 checkout/submodules
|
# 本地(act)验证作业:只验证 Git PATH 与 checkout/submodules
|
||||||
build-act-windows:
|
build-act-windows:
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user