Skip to content

Commit d946438

Browse files
Merge pull request #1059 from SwiftFiddle/612
Add Swift 6.1.2
2 parents 1594108 + 371e39a commit d946438

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

Public/js/runner.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ export class Runner {
2727
case "nightly-5.9":
2828
case "nightly-5.10":
2929
case "nightly-6.0":
30+
case "nightly-6.1":
31+
case "nightly-6.2":
3032
case "nightly-main": {
3133
const suffix = version.split(".").join("").split("-").join("");
3234
return `https://runner-functions-${suffix}.blackwater-cac8eec1.westus2.azurecontainerapps.io/runner/${version}/run`;
@@ -96,15 +98,16 @@ export class Runner {
9698
case "6.0.1":
9799
case "6.0.2":
98100
case "6.0.3":
99-
case "6.1": {
101+
case "6.1":
102+
case "6.1.1": {
100103
const suffix = version.split(".").join("");
101104
return `https://swiftfiddle-runner-functions-${suffix}.blackwater-cac8eec1.westus2.azurecontainerapps.io/runner/${version}/run`;
102105
}
103106
case "5.10.1": {
104107
const suffix = version.split(".").join("");
105108
return `https://swiftfiddle-runner-functions${suffix}.blackwater-cac8eec1.westus2.azurecontainerapps.io/runner/${version}/run`;
106109
}
107-
case "6.1.1": {
110+
case "6.1.2": {
108111
return `https://runner.swift-playground.com/runner/${version}/run`;
109112
}
110113

Sources/App/versions.swift

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
import Foundation
22

33
func latestVersion() throws -> String { try availableVersions()[0] }
4-
func stableVersion() -> String { "6.1.1" }
4+
func stableVersion() -> String { "6.1.2" }
55

66
func availableVersions() throws -> [String] {
77
[
88
"nightly-main",
9+
"nightly-6.2",
10+
"nightly-6.1",
911
"nightly-6.0",
1012
"nightly-5.10",
1113
"nightly-5.9",
@@ -15,6 +17,7 @@ func availableVersions() throws -> [String] {
1517
"nightly-5.5",
1618
"nightly-5.4",
1719
"nightly-5.3",
20+
"6.1.2",
1821
"6.1.1",
1922
"6.1",
2023
"6.0.3",

0 commit comments

Comments
 (0)