From 69417b71952a0e3239dae78edf09c38ef30adbfa Mon Sep 17 00:00:00 2001 From: Frederik Wallner Date: Wed, 4 May 2022 09:18:28 +0200 Subject: [PATCH] Add Swift 5.6.1 --- .github/workflows/ci.yml | 2 +- .github/workflows/stability.yml | 4 ++-- README.md | 4 ++-- __tests__/swift-versions.test.ts | 2 +- action.yml | 2 +- src/swift-versions.ts | 1 + 6 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 480c341f..cab7162c 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,7 +23,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - swift: ["5.6"] + swift: ["5.6.1"] steps: - uses: actions/checkout@v3 - run: npm install diff --git a/.github/workflows/stability.yml b/.github/workflows/stability.yml index 315545d2..283ba02d 100644 --- a/.github/workflows/stability.yml +++ b/.github/workflows/stability.yml @@ -11,7 +11,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - swift: ["5.6"] + swift: ["5.6.1"] steps: - uses: fwal/setup-swift@v1 with: @@ -25,7 +25,7 @@ jobs: strategy: matrix: os: [ubuntu-latest, macos-latest] - swift: ["5.6"] + swift: ["5.6.1"] steps: - uses: fwal/setup-swift@main with: diff --git a/README.md b/README.md index 99bd80a5..1e7c630d 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Supports macOS and Ubuntu - Swift 5.6 + Swift 5.6.1 Latest release @@ -28,7 +28,7 @@ After the environment is configured you can run swift commands using the standar ```yaml - uses: fwal/setup-swift@v1 - name: Get swift version - run: swift --version # Swift 5.6 + run: swift --version # Swift 5.6.1 ``` A specific Swift version can be set using the `swift-version` input: diff --git a/__tests__/swift-versions.test.ts b/__tests__/swift-versions.test.ts index 26165d9c..56819b67 100644 --- a/__tests__/swift-versions.test.ts +++ b/__tests__/swift-versions.test.ts @@ -27,7 +27,7 @@ describe("swift version resolver", () => { it("identifies X versions", async () => { const version = await versions.verify("5", macOS); - expect(version).toBe("5.6"); + expect(version).toBe("5.6.1"); }); it("identifies versions based on system", async () => { diff --git a/action.yml b/action.yml index 96d1e5a0..c20c419a 100644 --- a/action.yml +++ b/action.yml @@ -5,7 +5,7 @@ inputs: swift-version: description: Swift version to configure required: true - default: '5.6' + default: '5.6.1' outputs: version: description: The full Swift version that was configured diff --git a/src/swift-versions.ts b/src/swift-versions.ts index 438ca974..2694df47 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[]][] = [ + ["5.6.1", [OS.MacOS, OS.Ubuntu]], ["5.6", [OS.MacOS, OS.Ubuntu]], ["5.5.3", [OS.MacOS, OS.Ubuntu]], ["5.5.2", [OS.MacOS, OS.Ubuntu]],