probe: windows build
probe-windows / windows (push) Failing after 3s

This commit is contained in:
foxyz committed 2026-10-07 21:44:31 +03:00
1 parent 3924df4246
commit 43d8253a6a
2 files changed
+81 -10

No files matched your search

+26 -10
View File
@@ -1,16 +1,32 @@
name: probe-windows
on: push
jobs:
probe:
windows:
runs-on: windows-latest
steps:
- run: |
$PSVersionTable.PSVersion
whoami; hostname; Get-Location
[Environment]::OSVersion
foreach ($c in 'git','bash','pwsh','powershell','python','python3','curl','tar','7z','cmake','ninja','flutter','dart','node','cl','msbuild') { $p = Get-Command $c -ErrorAction SilentlyContinue; "{0,-12} {1}" -f $c, ($p.Source) }
$vw = "${env:ProgramFiles(x86)}\Microsoft Visual Studio\Installer\vswhere.exe"
if (Test-Path $vw) { & $vw -all -products * -format text | Select-String 'displayName|installationPath|installationVersion' } else { 'no vswhere' }
Get-PSDrive -PSProvider FileSystem | Select-Object Name,Free
"PATH=$env:PATH"
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Flutter (stable, cached on the runner host)
shell: powershell
run: |
$ErrorActionPreference = 'Stop'
$F = "$env:ProgramData\flutter-ci"
if (Test-Path "$F\.git") {
git -C $F fetch --depth 1 origin stable; if ($LASTEXITCODE) { exit 1 }
git -C $F reset --hard FETCH_HEAD; if ($LASTEXITCODE) { exit 1 }
} else {
git clone https://github.com/flutter/flutter.git -b stable --depth 1 $F; if ($LASTEXITCODE) { exit 1 }
}
Add-Content $env:GITHUB_PATH "$F\bin"
& "$F\bin\flutter.bat" config --no-analytics --enable-windows-desktop | Out-Null
& "$F\bin\flutter.bat" doctor -v
- name: Build zip
shell: powershell
run: powershell -NoProfile -ExecutionPolicy Bypass -File tool/package_windows.ps1
- name: Inspect
shell: powershell
run: |
Get-ChildItem dist
tar.exe -tf (Get-ChildItem dist\*.zip)[0].FullName | Select-Object -First 40