diff --git a/README.md b/README.md index b0df4763..18888ad7 100644 --- a/README.md +++ b/README.md @@ -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: @@ -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: diff --git a/dist/index.js b/dist/index.js index d94c7e24..2b556005 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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]], diff --git a/src/swift-versions.ts b/src/swift-versions.ts index 7394f926..04544d8a 100644 --- a/src/swift-versions.ts +++ b/src/swift-versions.ts @@ -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]],