Skip to content

Commit c8aaa3d

Browse files
authored
Update Swift nightly to 6.4.x in workflow file (#278)
1 parent 0366eba commit c8aaa3d

2 files changed

Lines changed: 29 additions & 5 deletions

File tree

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) 2026 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.4.x-branch/$swiftOSVersion/latest-build.json"
21+
$Release = curl.exe -sL ${SWIFT_RELEASE_METADATA}
22+
$SWIFT_URL = "https://download.swift.org/swift-6.4.x-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: 5 additions & 5 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\", \"6.3\", \"nightly-main\", \"nightly-6.3\"]"
44+
default: "[ \"5.9\", \"5.10\", \"6.0\", \"6.1\", \"6.2\", \"6.3\", \"nightly-main\", \"nightly-6.4.x\"]"
4545
linux_exclude_swift_versions:
4646
type: string
4747
description: "Exclude Linux Swift version list (JSON)"
@@ -57,23 +57,23 @@ on:
5757
linux_static_sdk_versions:
5858
type: string
5959
description: "Static Linux Swift SDK version list (JSON)"
60-
default: "[\"nightly-main\", \"nightly-6.3\", \"6.3\"]"
60+
default: "[\"nightly-main\", \"nightly-6.4.x\", \"6.3\"]"
6161
linux_static_sdk_exclude_swift_versions:
6262
type: string
6363
description: "Exclude Static Linux Swift SDK version list (JSON)"
6464
default: "[{\"swift_version\": \"\"}]"
6565
wasm_sdk_versions:
6666
type: string
6767
description: "Wasm Swift SDK version list (JSON)"
68-
default: "[\"nightly-main\", \"nightly-6.3\", \"6.3\"]"
68+
default: "[\"nightly-main\", \"nightly-6.4.x\", \"6.3\"]"
6969
wasm_exclude_swift_versions:
7070
type: string
7171
description: "Exclude Wasm Swift SDK version list (JSON)"
7272
default: "[{\"swift_version\": \"\"}]"
7373
android_sdk_versions:
7474
type: string
7575
description: "Android Swift SDK version list (JSON)"
76-
default: "[\"nightly-main\", \"nightly-6.3\", \"6.3\"]"
76+
default: "[\"nightly-main\", \"nightly-6.4.x\", \"6.3\"]"
7777
android_exclude_swift_versions:
7878
type: string
7979
description: "Exclude Android Swift SDK version list (JSON)"
@@ -82,7 +82,7 @@ on:
8282
type: string
8383
description: "Include Windows Swift version list (JSON)"
8484
# "5.10" is omitted for Windows because the container image is broken.
85-
default: "[\"5.9\", \"6.0\", \"6.1\", \"6.2\", \"6.3\", \"nightly-main\", \"nightly-6.3\"]"
85+
default: "[\"5.9\", \"6.0\", \"6.1\", \"6.2\", \"6.3\", \"nightly-main\", \"nightly-6.4.x\"]"
8686
windows_exclude_swift_versions:
8787
type: string
8888
description: "Exclude Windows Swift version list (JSON)"

0 commit comments

Comments
 (0)