From e096a651939ee20bef2d5a849857e45d2117597e Mon Sep 17 00:00:00 2001 From: Mihaela Mihaljevic Date: Fri, 26 Jun 2026 11:50:06 +0200 Subject: [PATCH] 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. --- .github/workflows/swift-windows.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/swift-windows.yml b/.github/workflows/swift-windows.yml index 7589c29..1756956 100644 --- a/.github/workflows/swift-windows.yml +++ b/.github/workflows/swift-windows.yml @@ -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: