Files
sync_replay_project/.gitea/workflows/probe.yml
T
foxyz e29a5a3b0a
probe-windows / windows (push) Successful in 14m56s
probe: plain git checkout
2026-10-07 21:46:33 +03:00

37 lines
1.4 KiB
YAML

name: probe-windows
on: push
jobs:
windows:
runs-on: windows-latest
steps:
# Plain git, no `uses:` — no node/action cache on the host needed.
- name: Checkout
shell: powershell
run: |
git init -q .
git fetch -q --tags "$env:GITHUB_SERVER_URL/$env:GITHUB_REPOSITORY.git" "$env:GITHUB_SHA"
if ($LASTEXITCODE) { exit 1 }
git checkout -q --force FETCH_HEAD
- 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