Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions _data/builds/swift_releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2241,3 +2241,64 @@
archs:
- x86_64
- arm64
- name: "6.2"
tag: swift-6.2-RELEASE
xcode: Xcode 26
xcode_release: true
date: 2025-09-15
platforms:
- name: Ubuntu 22.04
platform: Linux
docker: 6.2-jammy
archs:
- x86_64
- aarch64
- name: Ubuntu 24.04
platform: Linux
docker: 6.2-noble
archs:
- x86_64
- aarch64
- name: Debian 12
platform: Linux
docker: 6.2-bookworm
archs:
- x86_64
- aarch64
- name: Fedora 39
platform: Linux
docker: 6.2-fedora39
archs:
- x86_64
- aarch64
- name: Amazon Linux 2
platform: Linux
docker: 6.2-amazonlinux2
archs:
- x86_64
- aarch64
- name: Red Hat Universal Base Image 9
platform: Linux
docker: 6.2-rhel-ubi9
dir: ubi9
archs:
- x86_64
- aarch64
- name: Windows 10
platform: Windows
docker: 6.2-windowsservercore-ltsc2022
archs:
- x86_64
- arm64
- name: Static SDK
platform: static-sdk
checksum: d2225840e592389ca517bbf71652f7003dbf45ac35d1e57d98b9250368769378
archs:
- x86_64
- arm64
- name: Wasm
platform: wasm
checksum: fe4e8648309fce86ea522e9e0d1dc48e82df6ba6e5743dbf0c53db8429fb5224
archs:
- x86_64
- arm64
6 changes: 2 additions & 4 deletions _data/new-data/install/linux/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ latest-release:
swiftly:
pre-code-text: |
The Swiftly installer manages Swift and its dependencies. It supports switching between different versions and downloading updates.
headline: Swiftly
headline: 1. Install Swift via Swiftly
tabs:
- label: Bash
code: |-
Expand All @@ -20,12 +20,10 @@ latest-release:
links:
- href: 'https://raw.githubusercontent.com/swiftlang/swiftly/refs/heads/main/LICENSE.txt'
copy: 'License: Apache-2.0'
- href: 'https://download.swift.org/swiftly/linux/swiftly-0.4.0-dev-x86_64.tar.gz.sig'
- href: 'https://download.swift.org/swiftly/linux/swiftly-x86_64.tar.gz.sig'
copy: 'PGP: Signature'
- href: 'https://www.swift.org/install/linux/swiftly'
copy: 'Instructions'
- href: "https://www.swift.org/tools/#editors"
copy: "Editors"
container:
pre-code-text: |-
Official container images are available for compiling and running Swift on a variety of distributions.
Expand Down
12 changes: 9 additions & 3 deletions _data/new-data/install/macos/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ latest-release:
swiftly:
pre-code-text: |
To download toolchains from Swift.org, use the Swiftly toolchain installer. Swift.org toolchains support Static Linux SDK, include experimental features like Embedded Swift and support for WebAssembly.
headline: Swiftly
headline: 1. Install Swift via Swiftly
tabs:
- label: Bash
code: |
Expand All @@ -22,11 +22,17 @@ latest-release:
copy: 'License: Apache-2.0'
- href: 'https://www.swift.org/install/macos/swiftly'
copy: 'Instructions'
- href: "https://www.swift.org/tools/#editors"
copy: "Editors"
xcode:
pre-code-text: To develop with Swift for Apple platforms, download the latest version of Xcode, which is regularly refreshed with the latest Swift toolchain.
headline: Xcode
links:
- href: 'https://developer.apple.com/xcode/'
copy: 'Install Xcode'
- href: 'https://developer.apple.com/documentation/xcode'
copy: 'Documentation'
other_editors:
pre-code-text: Any editor that supports the Language Server Protocol (LSP) can use SourceKit-LSP to provide intelligent editor functionality for Swift.
headline: Other editors
links:
- href: 'https://www.swift.org/tools/#editors'
copy: 'Learn more'
6 changes: 2 additions & 4 deletions _data/new-data/install/windows/releases.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,15 @@ latest-release:
copy: "Additional details included in Instructions"
vscode:
pre-code-text: Visual Studio Code is a cross-platform and extensible editor that supports Swift through the Swift extension, which provides intelligent editor functionality as well as debugging and test support.
headline: 2. Select an Editor <br><br> Visual Studio Code
headline: Visual Studio Code
links:
- href: 'https://marketplace.visualstudio.com/items?itemName=swiftlang.swift-vscode'
copy: 'Install Swift extension'
- href: 'https://code.visualstudio.com/docs/languages/swift'
copy: 'Documentation'
- href: "https://www.swift.org/tools/#editors"
copy: "Other Editors"
build-a-package:
pre-code-text: "Let’s write a small application with your new Swift development environment."
headline: 3. Build a Command-line Tool
headline:
after-code-text: |
Create a directory:
<pre><code>mkdir MyCLI</code></pre>
Expand Down
5 changes: 5 additions & 0 deletions _includes/new-includes/components/linux-releases.html
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ <h2>Tarball</h2>
{% include new-includes/components/static-linux-sdk.html %}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/wasm-sdk.html %}
</div>
</div>
{% if include.rpm %}
<div class="release-box section">
<div class="content">
Expand Down
4 changes: 1 addition & 3 deletions _includes/new-includes/components/static-linux-sdk.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@
{% assign tag_downcase = site.data.builds.swift_releases.last.tag | downcase %}

<div class="code-box content-wrapper">
<h2>Static Linux SDK</h2>
<h2>Static Linux</h2>
<p class="body-copy">
Static Linux SDK - Cross compile to Linux.
<br /><br />
{% assign base_url = "https://download.swift.org/" | append: tag_downcase | append: "/static-sdk/" | append: tag | append: "/" | append: tag %}
{% assign command = "swift sdk install " | append: base_url | append: "_static-linux-0.0.1.artifactbundle.tar.gz --checksum " | append: platform.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Expand Down
23 changes: 23 additions & 0 deletions _includes/new-includes/components/wasm-sdk.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
{% assign platform = site.data.builds.swift_releases.last.platforms | where: 'name', 'Wasm'| first %}
{% assign tag = site.data.builds.swift_releases.last.tag %}
{% assign tag_downcase = site.data.builds.swift_releases.last.tag | downcase %}

<div class="code-box content-wrapper">
<h2>WebAssembly</h2>
<p class="body-copy">
{% assign base_url = "https://download.swift.org/" | append: tag_downcase | append: "/wasm/" | append: tag | append: "/" | append: tag %}
{% assign command = "swift sdk install " | append: base_url | append: "_wasm.artifactbundle.tar.gz --checksum " | append: platform.checksum %}
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
Copy install command
</button>
</p>
<div class="link-wrapper">
<div class="link-group">
<a href="https://download.swift.org/{{ tag_downcase }}/wasm/{{ tag }}/{{ tag }}_wasm.artifactbundle.tar.gz" class="body-copy">Download Wasm SDK</a> |
<a href="https://download.swift.org/{{ tag_downcase }}/wasm/{{ tag }}/{{ tag }}_wasm.artifactbundle.tar.gz.sig" class="body-copy">Signature (PGP)</a>
</div>
</div>
<div class="link-wrapper">
<a href="/documentation/articles/wasm-getting-started.html" class="body-copy">Instructions</a>
</div>
</div>
33 changes: 30 additions & 3 deletions install/linux/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,43 @@ title: Install Swift - Linux
{% include new-includes/components/code-box.html content = site.data.new-data.install.linux.releases.latest-release.container %}
</div>
</div>
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.other_editors%}
</div>
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/static-linux-sdk.html %}
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<div class="release-box section">
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
{% include new-includes/components/static-linux-sdk.html %}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
{% include new-includes/components/wasm-sdk.html %}
</div>
</div>
</div>
<br><br>
<hr>
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
Expand Down
50 changes: 43 additions & 7 deletions install/macos/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,18 +8,54 @@ title: Install Swift - macOS
{% assign xcode_dev_builds = site.data.builds.development.xcode | sort: 'date' | reverse %}
{% assign xcode_6_2_builds = site.data.builds.swift-6_2-branch.xcode | sort: 'date' | reverse %}


<div class="content">
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.macos.releases.latest-release.swiftly%}
</div>
</div>
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.xcode%}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
</div>
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.other_editors%}
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
</div>
</div>
<h2 id="swift-sdk-bundles" class="header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
{% include new-includes/components/static-linux-sdk.html %}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/wasm-sdk.html %}
</div>
</div>
</div>
<h3 id="alternative-install-options" class="header-with-anchor">Alternative toolchain install options</h3>
<div class="release-box section">
<div class="content">
<div class="code-box content-wrapper">
Expand All @@ -36,12 +72,6 @@ title: Install Swift - macOS
</div>
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/static-linux-sdk.html %}
</div>
</div>
</div>
<div class="release-box section">
<div class="content">
<details class="download" style="margin-bottom: 0;">
Expand All @@ -50,6 +80,8 @@ title: Install Swift - macOS
</details>
</div>
</div>
<br><br>
<hr>
<h2 id="development-snapshots" class="header-with-anchor">Development Snapshots</h2>
<div>
<p class="content-copy">Swift snapshots are prebuilt binaries that are automatically created from the branch. These snapshots are not official releases. They have gone through automated unit testing, but they have not gone through the full testing that is performed for official releases.</p>
Expand Down Expand Up @@ -118,7 +150,11 @@ title: Install Swift - macOS
</details>
</div>
</div>
<h3>Static Linux SDK</h3>
<h2 id="swift-sdk-buindles-dev" class="header-with-anchor">Swift SDK Bundles</h2>
<div>
<p class="content-copy">Additional components for cross-compilation</p>
</div>
<h3>Swift SDK for Static Linux</h3>
<div>
<p class="content-copy">
<a class="content-link" href="/documentation/articles/static-linux-getting-started.html">Instructions</a>
Expand Down
15 changes: 12 additions & 3 deletions install/windows/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,20 @@ title: Install Swift - Windows
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.winget %}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
<h3 id="editor" class="header-with-anchor">2. Select an Editor</h3>
<div class="releases-grid">
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.vscode%}
</div>
</div>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.macos.releases.latest-release.other_editors%}
</div>
</div>
</div>
<h3 id="build-a-command-line-tool" class="header-with-anchor">3. Build a Command-line Tool</h3>
<div class="release-box section">
<div class="content">
{% include new-includes/components/code-box.html content = site.data.new-data.install.windows.releases.latest-release.build-a-package%}
Expand Down