33 lines
1.2 KiB
YAML
33 lines
1.2 KiB
YAML
name: probe-windows
|
|
on: push
|
|
jobs:
|
|
windows:
|
|
runs-on: windows-latest
|
|
steps:
|
|
- 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
|