Skip to content

Commit

Permalink
feat: Adds swift 6.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
NeedleInAJayStack committed Sep 25, 2024
1 parent 3aed395 commit 736b146
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<img src="https://img.shields.io/badge/platform-macOS%20%7C%20Ubuntu%20%7C%20Windows-lightgray" alt="Supports macOS, Ubuntu & Windows" />
</a>
<a href="https://swift.org">
<img src="https://img.shields.io/badge/Swift-5.10.1-F05138?logo=swift&logoColor=white" alt="Swift 5.10.1" />
<img src="https://img.shields.io/badge/Swift-6.0.0-F05138?logo=swift&logoColor=white" alt="Swift 6.0.0" />
</a>
<a href="https://github.com/swift-actions/setup-swift/releases/latest">
<img src="https://img.shields.io/github/v/release/swift-actions/setup-swift?sort=semver" alt="Latest release" />
Expand All @@ -28,7 +28,7 @@ After the environment is configured you can run swift commands using the standar
```yaml
- uses: swift-actions/setup-swift@v2
- name: Get swift version
run: swift --version # Swift 5.10.1
run: swift --version # Swift 6.0
```

A specific Swift version can be set using the `swift-version` input:
Expand Down
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,8 @@ const semver = __importStar(__nccwpck_require__(1383));
const core = __importStar(__nccwpck_require__(2186));
const os_1 = __nccwpck_require__(1855);
const VERSIONS_LIST = [
["6.0", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["6.0.0", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["5.10.1", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["5.10", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["5.9.2", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
Expand Down
2 changes: 2 additions & 0 deletions src/swift-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ import * as core from "@actions/core";
import { System, OS } from "./os";

const VERSIONS_LIST: [string, OS[]][] = [
["6.0", [OS.MacOS, OS.Ubuntu]],
["6.0.0", [OS.MacOS, OS.Ubuntu]],
["5.10.1", [OS.MacOS, OS.Ubuntu]],
["5.10", [OS.MacOS, OS.Ubuntu]],
["5.9.2", [OS.MacOS, OS.Ubuntu]],
Expand Down

0 comments on commit 736b146

Please sign in to comment.