Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
> [!IMPORTANT]
> 3.0 is coming, powered by Swiftly 🚀 - follow progress on https://github.com/swift-actions/setup-swift/pull/710

> [!IMPORTANT]
> Experimental support for Swift 6.2. To install Swift 6.2, use the option to install a specific version. The default version is still 6.1.

## Usage

To run the action with the latest swift version available, simply add the action as a step in your workflow:
Expand All @@ -39,9 +42,9 @@ A specific Swift version can be set using the `swift-version` input:
```yaml
- uses: swift-actions/setup-swift@v2
with:
swift-version: "5.1.0"
swift-version: "6.2.0"
- name: Get swift version
run: swift --version # Swift 5.1.0
run: swift --version # Swift 6.2.0
```

Works perfect together with matrixes:
Expand Down
1 change: 1 addition & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,7 @@ const semver = __importStar(__nccwpck_require__(1383));
const core = __importStar(__nccwpck_require__(2186));
const os_1 = __nccwpck_require__(1855);
const VERSIONS_LIST = [
["6.2.0", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["6.1.0", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["6.0.3", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
["6.0.2", [os_1.OS.MacOS, os_1.OS.Ubuntu]],
Expand Down
1 change: 1 addition & 0 deletions src/swift-versions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import * as core from "@actions/core";
import { System, OS } from "./os";

const VERSIONS_LIST: [string, OS[]][] = [
["6.2.0", [OS.MacOS, OS.Ubuntu]],
["6.1.0", [OS.MacOS, OS.Ubuntu]],
["6.0.3", [OS.MacOS, OS.Ubuntu]],
["6.0.2", [OS.MacOS, OS.Ubuntu]],
Expand Down