swiftlang / swift-org-website

Swift.org website
https://swift.org
Other
477 stars 186 forks source link

Improve multi-arch links detection by a generic solution and add Windows (arm64) to 6.0 release #810

Closed stevapple closed 2 months ago

stevapple commented 2 months ago

This PR implements a generic way of detecting multiple archs for the latest release, and add Swift on Windows (arm64) to swift_releases.yml.

Motivation:

_includes/install/_build_release.md was relying on a dedicated include.aarch64 argument for generating an additional link. This is error-prone (eg. we may forget to specify the argument even if an aarch64 toolchain exists), not extensible (eg. if we want to add riscv64 support we'll then need a new dedicated link) and not future proof (eg. if a new platform doesn't support x86_64 we'll need a bunch of extra logic).

Modifications:

_includes/install/_build_release.md was partially refactored that:

install/windows/index.md was slightly updated to add similar handling for multi-arch.

_data/builds/swift_releases.yml was updated to add arm64 to Swift 6.0 on Windows.

Result:

Most changes happened internally. The only visible change is that Swift 6.0 toolchain will be available for Windows (arm64).

shahmishal commented 2 months ago

@swift-ci test