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
# UBI 9 - See https://github.com/swiftlang/swift/issues/80908
24
+
# UBI 9 - See https://github.com/swiftlang/swift/issues/80909
25
+
run: bash -c 'if [[ "${{ matrix.container }}" == "redhat/ubi9" ]]; then swiftly run +6.2-snapshot swift build --build-tests; else swiftly run +6.2-snapshot swift test; fi'
26
+
27
+
tests-selfhosted-macos:
28
+
name: Test (Smoke Test - Nightly Swift Toolchain) / macOS Sequoia ARM64
run: ./scripts/prep-gh-action.sh --install-swiftly --swift-snapshot main
25
22
- name: Build and Test
26
-
# UBI 9 and Ubuntu 20.04 - See https://github.com/swiftlang/swift/issues/80908
23
+
# UBI 9 - See https://github.com/swiftlang/swift/issues/80908
27
24
# UBI 9 - See https://github.com/swiftlang/swift/issues/80909
28
-
run: bash -c 'if [[ "${{ matrix.container }}" == "redhat/ubi9" ]]; then swiftly run +main-snapshot swift build --build-tests; elif [[ "${{ matrix.container }}" == "ubuntu:20.04" ]]; then swiftly run +main-snapshot swift build --build-tests; else swiftly run +main-snapshot swift test; fi'
25
+
run: bash -c 'if [[ "${{ matrix.container }}" == "redhat/ubi9" ]]; then swiftly run +main-snapshot swift build --build-tests; else swiftly run +main-snapshot swift test; fi'
26
+
27
+
tests-selfhosted-macos:
28
+
name: Test (Smoke Test - Nightly Swift Toolchain) / macOS Sequoia ARM64
29
+
runs-on: [self-hosted, macos, sequoia, ARM64]
30
+
steps:
31
+
- name: Checkout repository
32
+
uses: actions/checkout@v4
33
+
- name: Prepare the action
34
+
run: ./scripts/prep-gh-action.sh --install-swiftly --swift-snapshot main
Otherwise, you'll need to add a path for completion scripts to your function path, and turn on completion script autoloading. First, add these lines to ~/.zshrc:
22
22
23
23
```
24
-
fpath=(~/.zsh/completion $fpath)
24
+
fpath=(~/.zsh/completions $fpath)
25
25
autoload -U compinit
26
26
compinit
27
27
```
28
28
29
29
Next, create the completion directory and add the swiftly completions to it:
*Set the global default toolchain that is used when there are no .swift-version files.*
166
185
167
186
187
+
**--format=\<format\>:**
188
+
189
+
*Output format (text, json)*
190
+
191
+
168
192
**--assume-yes:**
169
193
170
194
*Disable confirmation prompts by assuming 'yes'*
@@ -206,6 +230,10 @@ Likewise, the latest snapshot associated with a given development branch can be
206
230
$ swiftly use 5.7-snapshot
207
231
$ swiftly use main-snapshot
208
232
233
+
macOS ONLY: There is a special selector for swiftly to use your Xcode toolchain. If there are multiple versions of Xcode then swiftly will use the currently selected toolchain from xcode-select.
234
+
235
+
$ swiftly use xcode
236
+
209
237
210
238
**--version:**
211
239
@@ -224,22 +252,26 @@ Likewise, the latest snapshot associated with a given development branch can be
The toolchain selector provided determines which toolchains to uninstall. Specific toolchains can be uninstalled by using their full names as the selector, for example a full stable release version with patch (a.b.c):
263
+
The list of toolchain selectors determines which toolchains to uninstall. Specific toolchains can be uninstalled by using their full names as the selector, for example a full stable release version with patch (a.b.c):
236
264
237
265
$ swiftly uninstall 5.2.1
238
266
239
267
Or a full snapshot name with date (a.b-snapshot-YYYY-mm-dd):
240
268
241
269
$ swiftly uninstall 5.7-snapshot-2022-06-20
242
270
271
+
Multiple toolchain selectors can uninstall multiple toolchains at once:
272
+
273
+
$ swiftly uninstall 5.2.1 6.0.1
274
+
243
275
Less specific selectors can be used to uninstall multiple toolchains at once. For instance, the patch version can be omitted to uninstall all toolchains associated with a given minor version release:
244
276
245
277
$ swiftly uninstall 5.6
@@ -285,7 +317,7 @@ Finally, all installed toolchains can be uninstalled by specifying 'all':
285
317
List installed toolchains.
286
318
287
319
```
288
-
swiftly list [<toolchain-selector>] [--version] [--help]
320
+
swiftly list [<toolchain-selector>] [--format=<format>] [--version] [--help]
289
321
```
290
322
291
323
**toolchain-selector:**
@@ -311,6 +343,11 @@ The installed snapshots for a given development branch can be listed by specifyi
0 commit comments