Skip to content

Commit 69624bd

Browse files
authored
Add support for Swift 6.3 nightly (#206)
1 parent 35713f8 commit 69624bd

File tree

3 files changed

+29
-5
lines changed

3 files changed

+29
-5
lines changed
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2024 Apple Inc. and the Swift project authors
6+
## Licensed under Apache License v2.0 with Runtime Library Exception
7+
##
8+
## See https://swift.org/LICENSE.txt for license information
9+
## See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
10+
##
11+
##===----------------------------------------------------------------------===##
12+
. $PSScriptRoot\install-swift.ps1
13+
14+
if ([System.Runtime.InteropServices.RuntimeInformation]::OSArchitecture -eq "Arm64") {
15+
$swiftOSVersion = 'windows10-arm64'
16+
} else {
17+
$swiftOSVersion = 'windows10'
18+
}
19+
20+
$SWIFT_RELEASE_METADATA="https://download.swift.org/swift-6.3-branch/$swiftOSVersion/latest-build.json"
21+
$Release = curl.exe -sL ${SWIFT_RELEASE_METADATA}
22+
$SWIFT_URL = "https://download.swift.org/swift-6.3-branch/$swiftOSVersion/$($($Release | ConvertFrom-JSON).dir)/$($($Release | ConvertFrom-JSON).download)"
23+
24+
Install-Swift -Url $SWIFT_URL -Sha256 ""

.github/workflows/swift_package_test.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ on:
4141
linux_swift_versions:
4242
type: string
4343
description: "Include Linux Swift version list (JSON)"
44-
default: "[ \"5.9\", \"5.10\", \"6.0\", \"6.1\", \"6.2\", \"nightly-main\", \"nightly-6.2\"]"
44+
default: "[ \"5.9\", \"5.10\", \"6.0\", \"6.1\", \"6.2\", \"nightly-main\", \"nightly-6.3\"]"
4545
linux_exclude_swift_versions:
4646
type: string
4747
description: "Exclude Linux Swift version list (JSON)"
@@ -61,15 +61,15 @@ on:
6161
wasm_sdk_versions:
6262
type: string
6363
description: "Wasm Swift SDK version list (JSON)"
64-
default: "[\"nightly-main\", \"nightly-6.2\", \"6.2\"]"
64+
default: "[\"nightly-main\", \"nightly-6.3\", \"6.2\"]"
6565
wasm_exclude_swift_versions:
6666
type: string
6767
description: "Exclude Wasm Swift SDK version list (JSON)"
6868
default: "[{\"swift_version\": \"\"}]"
6969
android_sdk_versions:
7070
type: string
7171
description: "Android Swift SDK version list (JSON)"
72-
default: "[\"nightly-main\"]"
72+
default: "[\"nightly-main\", \"nightly-6.3\"]"
7373
android_exclude_swift_versions:
7474
type: string
7575
description: "Exclude Android Swift SDK version list (JSON)"
@@ -78,7 +78,7 @@ on:
7878
type: string
7979
description: "Include Windows Swift version list (JSON)"
8080
# "5.10" is omitted for Windows because the container image is broken.
81-
default: "[\"5.9\", \"6.0\", \"6.1\", \"6.2\", \"nightly-main\", \"nightly-6.2\"]"
81+
default: "[\"5.9\", \"6.0\", \"6.1\", \"6.2\", \"nightly-main\", \"nightly-6.3\"]"
8282
windows_exclude_swift_versions:
8383
type: string
8484
description: "Exclude Windows Swift version list (JSON)"

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
### Testing
4242
4343
To enable pull request testing for all supported Swift versions (5.9, 5.10,
44-
6.0, 6.1, nightly, and nightly-6.1) on Linux and Windows, add the following code example in
44+
6.0, 6.1, 6.2, nightly, and nightly-6.3) on Linux and Windows, add the following code example in
4545
`.github/workflows/pull_request.yml`:
4646

4747
```yaml

0 commit comments

Comments
 (0)