fix(ci): restore Windows release asset uploads (#1605)

This commit is contained in:
Levi
2026-10-24 11:38:10 +08:00
committed by GitHub
parent c51c5b284d
commit b8ff5ff97f
-19
View File
@@ -84,17 +84,6 @@ jobs:
- uses: actions/setup-go@v5
with:
go-version: ${{ env.GO_VERSION }}
- name: Diagnose Windows compiler selection
if: matrix.arch == 'amd64' && github.event.inputs.test == 'true'
run: |
$ccName = go env CC
Get-Command -Name $ccName -CommandType Application | Format-Table Source
$cc = (Get-Command -Name $ccName -CommandType Application -ErrorAction Stop | Select-Object -First 1).Source
Write-Host "Selected cgo compiler: $cc"
& $cc --version
foreach ($dll in @("libstdc++-6.dll", "libgcc_s_seh-1.dll", "libwinpthread-1.dll")) {
& $cc "-print-file-name=$dll"
}
- uses: subosito/flutter-action@v2
with:
channel: ${{ matrix.flutter_channel || 'stable' }}
@@ -212,15 +201,7 @@ jobs:
iscc.exe setup.iss
mv "Output\gopeed.exe" "Output\Gopeed-$TAG-windows-${{ matrix.arch }}.exe"
Compress-Archive -Path "Output\Gopeed-$TAG-windows-${{ matrix.arch }}.exe" -DestinationPath "Output\Gopeed-$TAG-windows-${{ matrix.arch }}.zip"
- name: Upload Windows test packages
if: github.event.inputs.test == 'true'
uses: actions/upload-artifact@v4
with:
name: windows-${{ matrix.arch }}-packages
path: ui/flutter/build/windows/Output/*
if-no-files-found: error
- name: Upload
if: github.event.inputs.test != 'true'
uses: shogo82148/[email protected]
with:
upload_url: ${{ needs.get-release.outputs.upload_url }}