ci: run Windows only on release tags, not every PR (#329)

Windows runs the full build and test suite and is the slowest CI job
(about 22 minutes), so on every push and PR it adds the most wait for the
least marginal signal on pure-Swift changes. It now triggers only on a v*
tag push (cutting a release) or via workflow_dispatch, keeping per-PR CI
fast. The badge reflects the last release's Windows run. Deviates from the
uniform-trigger convention deliberately, for CI speed.
This commit is contained in:
Mihaela Mihaljevic 2026-06-26 11:50:06 +02:00 committed by GitHub
parent db880058c3
commit e096a65193
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,9 +1,12 @@
name: Swift (Windows)
# Windows runs the full build and test suite but is the slowest CI job, so it
# runs only when cutting a release (a `v*` tag push) or on demand, not on every
# push and PR. This keeps per-PR CI fast; the badge reflects the Windows run as
# of the last release.
on:
push:
branches: [main]
pull_request:
tags: ['v*']
workflow_dispatch:
permissions: