From 4e17dcd69a660eea371d715802c219601e76f50a Mon Sep 17 00:00:00 2001 From: Jay Herron Date: Sat, 21 Sep 2024 09:25:39 -0600 Subject: [PATCH] feat: Adds swift 6.0.0 --- README.md | 4 ++-- dist/index.js | 1 + src/swift-versions.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edd07cd7..e0d2b314 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Supports macOS, Ubuntu & Windows - Swift 5.10.1 + Swift 6.0.0 Latest release @@ -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: diff --git a/dist/index.js b/dist/index.js index 3d011b75..d4f82ca8 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.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]], diff --git a/src/swift-versions.ts b/src/swift-versions.ts index ef50b0cc..29d8b6c1 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.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]],