You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* [install] Add Swiftly to the install page under beta/preview
* Adjust the download URLs and instructions to support upcoming swiftly preview release (#857)
* Swiftly preview (#866)
* Adjust the download URLs and instructions to support upcoming swiftly preview release
* Correct the swiftly download URLs
---------
Co-authored-by: Mishal Shah <[email protected]>
* Update swiftly install pages (#887)
* Tweak wording, replace mac package option with Swiftly
* Wording tweaks for Linux, raise Docker prominence.
---------
Co-authored-by: Ben Cohen <[email protected]>
* container install directions (#888)
Signed-off-by: Eric Ernst <[email protected]>
* Update _includes/install/_linux_platforms_tabs.md
* Update the install command for Swiftly
* Update the Getting started pages for Swiftly
* Add copy code button
* Shoe copy button only at code block hover
* Add copy button for Linux
* Don't jump to the platforms on linux page
* Fix swiftly macos GSG instructions to remove unnecessary paragraph (#926)
* Update swiftly install one-liner and instructions (#936)
* Update the one-liners to explicitly set a swiftly home dir so that the source line works.
Update the swiftly path for macOS based on installer changes
* Add notes about the environment variables and install location customization
* Fix awkward wording in install note.
* Fix awkward wording in macOS install note
* Adjust the one-liners and installation pages for macOS and Linux
* Update the install command to use latest swiftly installer
---------
Signed-off-by: Eric Ernst <[email protected]>
Co-authored-by: Chris McGee <[email protected]>
Co-authored-by: Ben Cohen <[email protected]>
Co-authored-by: Ben Cohen <[email protected]>
Co-authored-by: Eric Ernst <[email protected]>
Co-authored-by: Federico Bucchi <[email protected]>
If you prefer a containerized environment, you can download the official container images for compiling and running Swift on a variety of distributions.
You can verify the integrity of the archive using the PGP signature. This will download the signature, install the swift.org signatures into your keychain, and verify the signature.
tar -zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz
24
+
```
25
+
26
+
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain.
27
+
28
+
```
29
+
./swiftly init
30
+
```
31
+
32
+
Note: You can set the SWIFTLY_HOME_DIR and SWIFTLY_BIN_DIR environment variables to customize your install location.
33
+
34
+
Your current shell may need some additional steps to update your session. Follow the guidance at the end of the installation for a smooth install experience, such as sourcing the environment file, and rehashing your shell's PATH.
35
+
36
+
There can be certain packages that need to be installed on your system so that the Swift toolchain can function. The swiftly initialization routine will show you how to install any missing packages.
37
+
38
+
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release:
39
+
40
+
```
41
+
swift --version
42
+
--
43
+
Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE)
44
+
Target: x86_64-unknown-linux-gnu
45
+
```
46
+
47
+
Or, you can install (and use) another swift release:
48
+
49
+
```
50
+
swiftly install --use 5.10
51
+
swift --version
52
+
--
53
+
Swift version 5.10 (swift-5.10-RELEASE)
54
+
Target: x86_64-unknown-linux-gnu
55
+
```
56
+
57
+
There's also an option to install the latest snapshot release and get access to the latest features:
58
+
59
+
```
60
+
swiftly install --use main-snapshot
61
+
```
62
+
63
+
Check for updates to swiftly and install them by running the self-update command:
64
+
65
+
```
66
+
swiftly self-update
67
+
```
68
+
69
+
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/)
To download toolchains from Swift.org, use the Swiftly toolchain installer. Swift.org toolchains include experimental features like Embedded Swift and support for WebAssembly.
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.
42
60
61
+
The easiest way to install development snapshots is with the Swiftly tool. Read more on the [instructions page](/install/macos/swiftly).
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain.
15
+
16
+
```
17
+
~/.swiftly/bin/swiftly init
18
+
```
19
+
20
+
Note: You can set the SWIFTLY_HOME_DIR and SWIFTLY_BIN_DIR environment variables to customize the install location.
21
+
22
+
<divclass="warning"markdown="1">
23
+
Your current shell may need some additional steps to update your session. Follow the guidance at the end of the installation for a smooth install experience, such as sourcing the environment file, and rehashing your shell's PATH.
24
+
</div>
25
+
26
+
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release:
27
+
28
+
```
29
+
swift --version
30
+
--
31
+
Apple Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE)
32
+
Target: arm64-apple-macosx15.0
33
+
```
34
+
35
+
Or, you can install (and use) another swift release:
36
+
37
+
```
38
+
swiftly install --use 5.10
39
+
swift --version
40
+
--
41
+
Apple Swift version 5.10 (swift-5.10-RELEASE)
42
+
Target: arm64-apple-macosx15.0
43
+
```
44
+
45
+
There's also an option to install the latest snapshot release and get access to the latest features:
46
+
47
+
```
48
+
swiftly install --use main-snapshot
49
+
```
50
+
51
+
Check for updates to swiftly and install them by running the self-update command:
52
+
53
+
```
54
+
swiftly self-update
55
+
```
56
+
57
+
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/)
0 commit comments