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
Copy file name to clipboardExpand all lines: README.md
+13-15Lines changed: 13 additions & 15 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
# Setup Swift
1
+
# Setup Swift using Swiftly
2
2
3
3
<p>
4
4
<ahref="https://github.com/features/actions">
@@ -15,17 +15,17 @@
15
15
</a>
16
16
</p>
17
17
18
-
[GitHub Action](https://github.com/features/actions) that will setup a [Swift](https://swift.org) environment with a specific version. Works on both Ubuntu and macOS runners.
18
+
[GitHub Action](https://github.com/features/actions) that will setup a [Swift](https://swift.org) environment with a specific version using [Swiftly](https://github.com/swift-actions/swiftly). Works on both Ubuntu and macOS runners.
19
19
20
20
> [!IMPORTANT]
21
-
> 3.0 is coming, powered by Swiftly 🚀 - follow progress on https://github.com/swift-actions/setup-swift/pull/710
21
+
> Version 3 is currently in beta. Please report any issues you encounter. To use legacy version 2, use `@v2`.
22
22
23
23
## Usage
24
24
25
25
To run the action with the latest swift version available, simply add the action as a step in your workflow:
26
26
27
27
```yaml
28
-
- uses: swift-actions/setup-swift@v2
28
+
- uses: swift-actions/setup-swift@v3
29
29
```
30
30
31
31
After the environment is configured you can run swift commands using the standard [`run`](https://help.github.com/en/actions/automating-your-workflow-with-github-actions/workflow-syntax-for-github-actions#jobsjob_idstepsrun) step:
@@ -41,7 +41,7 @@ A specific Swift version can be set using the `swift-version` input:
41
41
```yaml
42
42
- uses: swift-actions/setup-swift@v2
43
43
with:
44
-
swift-version: "5.1.0"
44
+
swift-version: "5.1"
45
45
- name: Get swift version
46
46
run: swift --version # Swift 5.1.0
47
47
```
@@ -63,17 +63,15 @@ steps:
63
63
run: swift --version
64
64
```
65
65
66
-
## Note about versions
67
-
68
-
This project uses strict semantic versioning to determine what version of Swift to configure. This differs slightly from the official convention used by Swift.
69
-
70
-
For example, Swift is available as version `5.1` but using this as value for `swift-version` will be interpreted as a version _range_ of `5.1.X` where `X` is the latest patch version available for that major and minor version.
66
+
### Skip GPG signature verification
71
67
72
-
In other words specifying...
68
+
If you are running on a runner that is not able to verify the GPG signature of the Swiftly package, you can skip the verification by setting the `skip-verify-signature` input to `true`.
73
69
74
-
- `"5.1.0"`will resolve to version `5.1`
75
-
- `"5.1"`will resolve to latest patch version (aka `5.1.1`)
76
-
- `"5"`will resolve to latest minor and patch version (aka `5.10`)
70
+
```yaml
71
+
- uses: swift-actions/setup-swift@v3
72
+
with:
73
+
skip-verify-signature: true
74
+
```
77
75
78
76
### Caveats
79
77
@@ -95,7 +93,7 @@ Not:
95
93
96
94
## Keeping the action up-to-date
97
95
98
-
You have two options for keeping this action up-to-date: either you define a specific version (like `v2.0.1`) or use the major version tag (like `v2`).
96
+
You have two options for keeping this action up-to-date: either you define a specific version (like `v3.0.0`) or use the major version tag (like `v3`).
0 commit comments