Files
swift-nio/scripts
61a7fe1bda fix(ci): fix static Linux SDK version discovery for main snapshots (#3726)
Fix static Linux SDK snapshot resolution falling back to outdated
versions.

### Motivation:

The `main` job of the static Linux SDK matrix has been resolving
snapshots from over a month ago instead of recent nightlies.
`scripts/install_swift_sdk.sh` hardcodes the static-sdk artifact suffix
as `_static-linux-0.0.1`, but swift.org now publishes it as `0.1.0`.
Every recent snapshot 404s on the SDK URL, so the discovery loop keeps
rejecting them until it lands on a December snapshot that still used the
old suffix.

Fixes #3711

### Modifications:

`scripts/install_swift_sdk.sh` now tries a small list of known
static-sdk suffixes (`0.1.0`, then `0.0.1`) for each candidate snapshot
instead of a single hardcoded value, and stops at the first one that
resolves. The existing snapshot/SDK return-code checks and logging are
unchanged.

### Result:

The `main` branch job picks up current nightly snapshots again instead
of falling back 40+ days. If Apple bumps the static SDK version again in
the future, adding it to the candidate list is a one-line fix.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Rick Newton-Rogers <rnro@apple.com>
2026-09-07 12:56:15 +00:00
..