Skip to content

Commit

Permalink
Add Swift 5.10.1
Browse files Browse the repository at this point in the history
  • Loading branch information
fwal committed Jul 3, 2024
1 parent 11534ba commit 7090b9f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 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-F05138?logo=swift&logoColor=white" alt="Swift 5.10" />
<img src="https://img.shields.io/badge/Swift-5.10.1-F05138?logo=swift&logoColor=white" alt="Swift 5.10.1" />
</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
run: swift --version # Swift 5.10.1
```

A specific Swift version can be set using the `swift-version` input:
Expand Down
2 changes: 1 addition & 1 deletion __tests__/swift-versions.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe("swift version resolver", () => {

it("identifies X versions", async () => {
const version = await versions.verify("5", macOS);
expect(version).toBe("5.10");
expect(version).toBe("5.10.1");
});

it("identifies versions based on system", async () => {
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[]][] = [
["5.10.1", [OS.MacOS, OS.Ubuntu]],
["5.10", [OS.MacOS, OS.Ubuntu]],
["5.9.2", [OS.MacOS, OS.Ubuntu]],
["5.9.1", [OS.MacOS, OS.Ubuntu]],
Expand Down

0 comments on commit 7090b9f

Please sign in to comment.