Skip to content

Commit b0b9c09

Browse files
authored
Add support for Wasm sdk support (#1064)
1 parent 5f88266 commit b0b9c09

File tree

6 files changed

+111
-8
lines changed

6 files changed

+111
-8
lines changed

_data/new-data/install/linux/dev.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
latest-dev:
2+
swiftly:
3+
pre-code-text: |
4+
Swiftly supports installing development snapshot toolchains. For example, you can install the latest available snapshot for the next major release using the “main-snapshot” selector and prepare your code for when it arrives.
5+
headline: Swiftly
6+
tabs:
7+
- label: main
8+
code: |-
9+
swiftly install main-snapshot
10+
- label: release/6.2
11+
code: |-
12+
swiftly install 6.2-snapshot
13+
links:
14+
- href: '/install/linux/swiftly'
15+
copy: 'Instructions'

_includes/new-includes/components/linux-releases.html

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,15 @@ <h2>{{ include.development_2 }}</h2>
164164
<h3>Static Linux SDK</h3>
165165
<div>
166166
<p class="content-copy">
167-
<a class="content-link" href="https://www.swift.org/documentation/articles/static-linux-getting-started.html">Instructions</a>
167+
<a class="content-link" href="/documentation/articles/static-linux-getting-started.html">Instructions</a>
168168
</p>
169169
</div>
170170
{% include new-includes/components/static-linux-sdk-dev.html %}
171+
<h3>Swift SDK for WebAssembly</h3>
172+
<div>
173+
<p class="content-copy">
174+
<a class="content-link" href="/documentation/articles/wasm-getting-started.html">Instructions</a>
175+
</p>
176+
</div>
177+
{% include new-includes/components/wasm-sdk-dev.html %}
171178
</div>

_includes/new-includes/components/static-linux-sdk-dev.html

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{% assign static_sdk_dev_builds = site.data.builds.development.static_sdk | sort: 'date' | reverse %}
2-
{% assign static_sdk_6_1_builds = site.data.builds.swift-6_1-branch.static_sdk | sort: 'date' | reverse %}
2+
{% assign static_sdk_6_2_builds = site.data.builds.swift-6_2-branch.static-sdk | sort: 'date' | reverse %}
33

44
<div class="releases-grid">
55
<div class="release-box section">
@@ -28,21 +28,21 @@ <h2>main</h2>
2828
<div class="release-box section">
2929
<div class="content">
3030
<div class="code-box content-wrapper">
31-
<h2>release/6.1</h2>
31+
<h2>release/6.2</h2>
3232
<p class="body-copy">
33-
<small>{{ static_sdk_6_1_builds.first.date | date: '%B %-d, %Y' }}</small><br />
33+
<small>{{ static_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
3434
Static Linux SDK - Cross compile to Linux.
3535
<br /><br />
36-
{% assign base_url = "https://download.swift.org/development/static-sdk/" | append: static_sdk_6_1_builds.first.dir | append: "/" | append: static_sdk_6_1_builds.first.download %}
37-
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_6_1_builds.first.checksum %}
36+
{% assign base_url = "https://download.swift.org/swift-6.2-branch/static-sdk/" | append: static_sdk_6_2_builds.first.dir | append: "/" | append: static_sdk_6_2_builds.first.download %}
37+
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: static_sdk_6_2_builds.first.checksum %}
3838
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
3939
Copy install command
4040
</button>
4141
</p>
4242
<div class="link-wrapper">
4343
<div class="link-group">
44-
<a href="https://download.swift.org/swift-6.1-branch/static-sdk/{{ static_sdk_6_1_builds.first.dir }}/{{ static_sdk_6_1_builds.first.download }}" class="body-copy">Download Linux Static SDK</a> |
45-
<a href="https://download.swift.org/swift-6.1-branch/static-sdk/{{ static_sdk_6_1_builds.first.dir }}/{{ static_sdk_6_1_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
44+
<a href="https://download.swift.org/swift-6.2-branch/static-sdk/{{ static_sdk_6_2_builds.first.dir }}/{{ static_sdk_6_2_builds.first.download }}" class="body-copy">Download Linux Static SDK</a> |
45+
<a href="https://download.swift.org/swift-6.2-branch/static-sdk/{{ static_sdk_6_2_builds.first.dir }}/{{ static_sdk_6_2_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
4646
</div>
4747
</div>
4848
</div>
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
{% assign wasm_sdk_dev_builds = site.data.builds.development.wasm-sdk | sort: 'date' | reverse %}
2+
{% assign wasm_sdk_6_2_builds = site.data.builds.swift-6_2-branch.wasm-sdk | sort: 'date' | reverse %}
3+
4+
<div class="releases-grid">
5+
<div class="release-box section">
6+
<div class="content">
7+
<div class="code-box content-wrapper">
8+
<h2>main</h2>
9+
<p class="body-copy">
10+
<small>{{ wasm_sdk_dev_builds.first.date | date: '%B %-d, %Y' }}</small><br />
11+
Swift SDKs for WebAssembly
12+
<br /><br />
13+
{% assign base_url = "https://download.swift.org/development/wasm-sdk/" | append: wasm_sdk_dev_builds.first.dir | append: "/" | append: wasm_sdk_dev_builds.first.download %}
14+
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_dev_builds.first.checksum %}
15+
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
16+
Copy install command
17+
</button>
18+
</p>
19+
<div class="link-wrapper">
20+
<div class="link-group">
21+
<a href="https://download.swift.org/development/wasm-sdk/{{ wasm_sdk_dev_builds.first.dir }}/{{ wasm_sdk_dev_builds.first.download }}" class="body-copy">Download Wasm SDK</a> |
22+
<a href="https://download.swift.org/development/wasm-sdk/{{ wasm_sdk_dev_builds.first.dir }}/{{ wasm_sdk_dev_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
23+
</div>
24+
</div>
25+
</div>
26+
</div>
27+
</div>
28+
<div class="release-box section">
29+
<div class="content">
30+
<div class="code-box content-wrapper">
31+
<h2>release/6.2</h2>
32+
<p class="body-copy">
33+
<small>{{ wasm_sdk_6_2_builds.first.date | date: '%B %-d, %Y' }}</small><br />
34+
Swift SDKs for WebAssembly
35+
<br /><br />
36+
{% assign base_url = "https://download.swift.org/swift-6.2-branch/wasm-sdk/" | append: wasm_sdk_6_2_builds.first.dir | append: "/" | append: wasm_sdk_6_2_builds.first.download %}
37+
{% assign command = "swift sdk install " | append: base_url | append: " --checksum " | append: wasm_sdk_6_2_builds.first.checksum %}
38+
<button onclick="copyToClipboard(this, '{{ command | escape }}')">
39+
Copy install command
40+
</button>
41+
</p>
42+
<div class="link-wrapper">
43+
<div class="link-group">
44+
<a href="https://download.swift.org/swift-6.2-branch/wasm-sdk/{{ wasm_sdk_6_2_builds.first.dir }}/{{ wasm_sdk_6_2_builds.first.download }}" class="body-copy">Download Wasm SDK</a> |
45+
<a href="https://download.swift.org/swift-6.2-branch/wasm-sdk/{{ wasm_sdk_6_2_builds.first.dir }}/{{ wasm_sdk_6_2_builds.first.download_signature }}" class="body-copy">Signature (PGP)</a>
46+
</div>
47+
</div>
48+
</div>
49+
</div>
50+
</div>
51+
</div>

install/linux/index.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,29 @@ title: Install Swift - Linux
2121
{% include new-includes/components/static-linux-sdk.html %}
2222
</div>
2323
</div>
24+
<h2>Development Snapshots</h2>
25+
<div>
26+
<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>
27+
</div>
28+
<div class="release-box section">
29+
<div class="content">
30+
{% include new-includes/components/code-box.html with-tabs = true content = site.data.new-data.install.linux.dev.latest-dev.swiftly %}
31+
</div>
32+
</div>
33+
<h3>Static Linux SDK</h3>
34+
<div>
35+
<p class="content-copy">
36+
<a class="content-link" href="/documentation/articles/static-linux-getting-started.html">Instructions</a>
37+
</p>
38+
</div>
39+
{% include new-includes/components/static-linux-sdk-dev.html %}
40+
<h3>Swift SDK for WebAssembly</h3>
41+
<div>
42+
<p class="content-copy">
43+
<a class="content-link" href="/documentation/articles/wasm-getting-started.html">Instructions</a>
44+
</p>
45+
</div>
46+
{% include new-includes/components/wasm-sdk-dev.html %}
2447
<div class="callout">
2548
<div>
2649
<p class="content-copy">

install/macos/index.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,4 +120,11 @@ title: Install Swift - macOS
120120
</p>
121121
</div>
122122
{% include new-includes/components/static-linux-sdk-dev.html %}
123+
<h3>Swift SDK for WebAssembly</h3>
124+
<div>
125+
<p class="content-copy">
126+
<a class="content-link" href="/documentation/articles/wasm-getting-started.html">Instructions</a>
127+
</p>
128+
</div>
129+
{% include new-includes/components/wasm-sdk-dev.html %}
123130
</div>

0 commit comments

Comments
 (0)