Skip to content

Commit 2221265

Browse files
committed
updated default version to 5.5
1 parent c2ceedf commit 2221265

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
strategy:
2424
matrix:
2525
os: [ubuntu-latest, macos-latest]
26-
swift: ["5.4.3"]
26+
swift: ["5.5"]
2727
steps:
2828
- uses: actions/checkout@v2
2929
- run: npm install

.github/workflows/stability.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
os: [ubuntu-latest, macos-latest]
15-
swift: ["5.4.3"]
15+
swift: ["5.5"]
1616
steps:
1717
- uses: fwal/setup-swift@v1
1818
with:
@@ -26,7 +26,7 @@ jobs:
2626
strategy:
2727
matrix:
2828
os: [ubuntu-latest, macos-latest]
29-
swift: ["5.4.3"]
29+
swift: ["5.5"]
3030
steps:
3131
- uses: fwal/setup-swift@main
3232
with:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ After the environment is configured you can run swift commands using the standar
2828
```yaml
2929
- uses: fwal/setup-swift@v1
3030
- name: Get swift version
31-
run: swift --version # Swift 5.4.3
31+
run: swift --version # Swift 5.5
3232
```
3333

3434
A specific Swift version can be set using the `swift-version` input:
@@ -68,11 +68,11 @@ For example, Swift is available as version `5.1` but this will be interpreted as
6868
In other words specifying...
6969
- `"5.1.0"` will resolve to version `5.1`
7070
- `"5.1"` will resolve to latest patch version (aka `5.1.1`)
71-
- `"5"` will resolve to latest minor and patch version (aka `5.4.3`)
71+
- `"5"` will resolve to latest minor and patch version (aka `5.5`)
7272

7373
### Caveats
7474

75-
YAML interprets eg. `5.0` as a float, this action will then interpret that as `5` which will result in eg. Swift 5.4.3 being resolved. Quote your inputs! Thus:
75+
YAML interprets eg. `5.0` as a float, this action will then interpret that as `5` which will result in eg. Swift 5.5 being resolved. Quote your inputs! Thus:
7676

7777
```
7878
- uses: fwal/setup-swift@v1

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ inputs:
55
swift-version:
66
description: Swift version to configure
77
required: true
8-
default: '5.4.3'
8+
default: '5.5'
99
outputs:
1010
version:
1111
description: The full Swift version that was configured

dist/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2735,9 +2735,9 @@ const get_version_1 = __webpack_require__(778);
27352735
function run() {
27362736
return __awaiter(this, void 0, void 0, function* () {
27372737
try {
2738-
// const requestedVersion = core.getInput("swift-version", { required: true });
2738+
const requestedVersion = core.getInput("swift-version", { required: true });
27392739
let platform = yield system.getSystem();
2740-
let version = versions.verify("5.5", platform);
2740+
let version = versions.verify(requestedVersion, platform);
27412741
switch (platform.os) {
27422742
case system.OS.MacOS:
27432743
yield macos.install(version, platform);

0 commit comments

Comments
 (0)