Skip to content

Conversation

@speednoisemovement
Copy link
Contributor

Currently, this expects a string like "swift-DEVELOPMENT-SNAPSHOT-2025-11-03-a-windows10" but arm64 builds also have a "-arm64" tacked on.

.TrimEnd("-arm64") is a no-op on the x64 version, so I figured better to do it this way than a messy regex or conditions.

# TODO(compnerd) stamp/validate that we need to re-extract
New-Item -ItemType Directory -ErrorAction Ignore $BinaryCache\toolchains | Out-Null
Extract-Toolchain "$PinnedToolchain.exe" $BinaryCache $PinnedToolchain.TrimStart("swift-").TrimEnd("-a-windows10")
Extract-Toolchain "$PinnedToolchain.exe" $BinaryCache $PinnedToolchain.TrimStart("swift-").TrimEnd("-arm64").TrimEnd("-a-windows10")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A regex wouldn't be bad. I've seen some oddities with the current implementation (using installer.exe locally gives nstaller for the name). I think that doing that subsequently would be a good balance - clean up the behaviour but unblock usage.

@compnerd
Copy link
Member

@swift-ci please smoke test

@compnerd compnerd enabled auto-merge November 12, 2025 21:33
@compnerd compnerd merged commit 121c759 into swiftlang:main Nov 13, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants