-
Notifications
You must be signed in to change notification settings - Fork 234
[install] Add Swiftly to the install page #830
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
0ea0585
[install] Add Swiftly to the install page under beta/preview
shahmishal 4d36eb5
Adjust the download URLs and instructions to support upcoming swiftly…
cmcgee1024 1cda4bf
Swiftly preview (#866)
cmcgee1024 2796185
Update swiftly install pages (#887)
airspeedswift 6bc1224
container install directions (#888)
egernst 5e036b8
Update _includes/install/_linux_platforms_tabs.md
shahmishal b01fa81
Update the install command for Swiftly
shahmishal 696690d
Update the Getting started pages for Swiftly
shahmishal 36b8c76
Merge branch 'main' into swiftly-preview
shahmishal ea707ba
Add copy code button
federicobucchi 7fae307
Shoe copy button only at code block hover
federicobucchi 462701b
Add copy button for Linux
shahmishal c088e33
Don't jump to the platforms on linux page
shahmishal b5cd470
Fix swiftly macos GSG instructions to remove unnecessary paragraph (#…
cmcgee1024 3aa41bd
Update swiftly install one-liner and instructions (#936)
cmcgee1024 5f0c2e4
Update the install command to use latest swiftly installer
shahmishal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
version: "0.4.0" | ||
version: "1.0.0" | ||
platforms: | ||
- platform: Linux | ||
x86_64: "https://download.swift.org/swiftly/linux/swiftly-0.4.0-x86_64.tar.gz" | ||
arm64: "https://download.swift.org/swiftly/linux/swiftly-0.4.0-aarch64.tar.gz" | ||
x86_64: "https://download.swift.org/swiftly/linux/swiftly-1.0.0-x86_64.tar.gz" | ||
arm64: "https://download.swift.org/swiftly/linux/swiftly-1.0.0-aarch64.tar.gz" | ||
- platform: Darwin | ||
x86_64: "https://download.swift.org/swiftly/darwin/swiftly-0.4.0.pkg" | ||
arm64: "https://download.swift.org/swiftly/darwin/swiftly-0.4.0.pkg" | ||
x86_64: "https://download.swift.org/swiftly/darwin/swiftly-1.0.0.pkg" | ||
arm64: "https://download.swift.org/swiftly/darwin/swiftly-1.0.0.pkg" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
--- | ||
layout: page | ||
title: Getting Started with Swiftly on Linux | ||
--- | ||
|
||
Download swiftly for [Linux (Intel)](https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-x86_64.tar.gz), or [Linux (ARM)](https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-aarch64.tar.gz). | ||
|
||
``` | ||
curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz | ||
``` | ||
|
||
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. | ||
|
||
``` | ||
curl https://www.swift.org/keys/all-keys.asc | gpg --import - | ||
curl -O https://download.swift.org/swiftly/linux/swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig | ||
gpg --verify swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz.sig swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz | ||
``` | ||
|
||
Extract the archive. | ||
|
||
``` | ||
tar -zxf swiftly-{{ site.data.builds.swiftly_release.version }}-$(uname -m).tar.gz | ||
``` | ||
|
||
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain. | ||
|
||
``` | ||
./swiftly init | ||
``` | ||
|
||
Note: You can set the SWIFTLY_HOME_DIR and SWIFTLY_BIN_DIR environment variables to customize your install location. | ||
|
||
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. | ||
|
||
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. | ||
|
||
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release: | ||
|
||
``` | ||
swift --version | ||
-- | ||
Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE) | ||
Target: x86_64-unknown-linux-gnu | ||
``` | ||
|
||
Or, you can install (and use) another swift release: | ||
|
||
``` | ||
swiftly install --use 5.10 | ||
swift --version | ||
-- | ||
Swift version 5.10 (swift-5.10-RELEASE) | ||
Target: x86_64-unknown-linux-gnu | ||
``` | ||
|
||
There's also an option to install the latest snapshot release and get access to the latest features: | ||
|
||
``` | ||
swiftly install --use main-snapshot | ||
``` | ||
|
||
Check for updates to swiftly and install them by running the self-update command: | ||
|
||
``` | ||
swiftly self-update | ||
``` | ||
|
||
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
--- | ||
layout: page | ||
title: Getting Started with Swiftly on macOS | ||
--- | ||
|
||
Download the [swiftly package for macOS](https://download.swift.org/swiftly/darwin/swiftly-{{ site.data.builds.swiftly_release.version }}.pkg). | ||
|
||
Install the package in your user account: | ||
|
||
``` | ||
installer -pkg swiftly-{{ site.data.builds.swiftly_release.version }}.pkg -target CurrentUserHomeDirectory | ||
``` | ||
|
||
Run the following command in your terminal, to configure swiftly for your account, and automatically download the latest swift toolchain. | ||
|
||
``` | ||
~/.swiftly/bin/swiftly init | ||
``` | ||
|
||
Note: You can set the SWIFTLY_HOME_DIR and SWIFTLY_BIN_DIR environment variables to customize the install location. | ||
|
||
<div class="warning" markdown="1"> | ||
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. | ||
</div> | ||
|
||
Now that swiftly and swift are installed, you can access the `swift` command from the latest Swift release: | ||
|
||
``` | ||
swift --version | ||
-- | ||
Apple Swift version {{ site.data.builds.swift_releases.last.name }} (swift-{{ site.data.builds.swift_releases.last.name }}-RELEASE) | ||
Target: arm64-apple-macosx15.0 | ||
``` | ||
|
||
Or, you can install (and use) another swift release: | ||
|
||
``` | ||
swiftly install --use 5.10 | ||
swift --version | ||
-- | ||
Apple Swift version 5.10 (swift-5.10-RELEASE) | ||
Target: arm64-apple-macosx15.0 | ||
``` | ||
|
||
There's also an option to install the latest snapshot release and get access to the latest features: | ||
|
||
``` | ||
swiftly install --use main-snapshot | ||
``` | ||
|
||
Check for updates to swiftly and install them by running the self-update command: | ||
|
||
``` | ||
swiftly self-update | ||
``` | ||
|
||
You can discover more about swiftly in the [documentation](https://www.swift.org/swiftly/documentation/swiftlydocs/) |
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.