Skip to content

Commit d245c4f

Browse files
authored
Merge branch 'swiftlang:main' into main
2 parents acd2823 + 6e10732 commit d245c4f

7 files changed

Lines changed: 61 additions & 11 deletions

File tree

.github/workflows/create_automerge_pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,10 @@ name: Create automerge PR
4040
# types: [..., ready_for_review]
4141
# ```
4242
# Unfortunately this will also re-trigger testing evenon a normal user's PR (which may have already been tested), but skipping them causes the checks to reset so this is the best we can do for now.
43+
44+
permissions:
45+
contents: read
46+
4347
on:
4448
workflow_call:
4549
inputs:

.github/workflows/performance_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Performance test
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:

.github/workflows/pull_request.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Pull request
22

3+
permissions:
4+
contents: read
5+
36
on:
47
pull_request:
58
types: [opened, reopened, synchronize]

.github/workflows/scripts/check-license-header.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ while IFS= read -r file_path; do
116116
file_header=$(head -n "${expected_file_header_linecount}" "${file_path}")
117117
normalized_file_header=$(
118118
echo "${file_header}" \
119-
| sed -E -e 's/20[12][0123456789] ?- ?20[12][0123456789]/YEARS/' -e 's/20[12][0123456789]/YEARS/' \
119+
| sed -E -e 's/20[12][0123456789] ?[-–] ?20[12][0123456789]/YEARS/' -e 's/20[12][0123456789]/YEARS/' \
120120
)
121121

122122
if ! diff -u \
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
##===----------------------------------------------------------------------===##
2+
##
3+
## This source file is part of the Swift.org open source project
4+
##
5+
## Copyright (c) 2025 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+
$SWIFT='https://download.swift.org/swift-6.2-release/windows10/swift-6.2-RELEASE/swift-6.2-RELEASE-windows10.exe'
15+
$SWIFT_SHA256='80FBBC17D4F9EDEC74A83ABBEFEB9FF418FFC2158CD347111583C45E47F9789B'
16+
17+
Install-Swift -Url $SWIFT -Sha256 $SWIFT_SHA256

.github/workflows/soundness.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,15 +18,15 @@ on:
1818
api_breakage_check_container_image:
1919
type: string
2020
description: "Container image for the API breakage check job. Defaults to latest Swift Ubuntu image."
21-
default: "swift:6.1-noble"
21+
default: "swift:6.2-noble"
2222
docs_check_enabled:
2323
type: boolean
2424
description: "Boolean to enable the docs check job. Defaults to true."
2525
default: true
2626
docs_check_container_image:
2727
type: string
2828
description: "Container image for the docs check job. Defaults to latest Swift Ubuntu image."
29-
default: "swift:6.1-noble"
29+
default: "swift:6.2-noble"
3030
docs_check_additional_arguments:
3131
type: string
3232
description: "Additional arguments that should be passed to docc"
@@ -58,15 +58,15 @@ on:
5858
format_check_container_image:
5959
type: string
6060
description: "Container image for the format check job. Defaults to latest Swift Ubuntu image."
61-
default: "swift:6.1-noble"
61+
default: "swift:6.2-noble"
6262
shell_check_enabled:
6363
type: boolean
6464
description: "Boolean to enable the shell check job. Defaults to true."
6565
default: true
6666
shell_check_container_image:
6767
type: string
6868
description: "Container image for the shell check job. Defaults to latest Swift Ubuntu image."
69-
default: "swift:6.1-noble"
69+
default: "swift:6.2-noble"
7070
yamllint_check_enabled:
7171
type: boolean
7272
description: "Boolean to enable the YAML lint check job. Defaults to true."
@@ -80,6 +80,9 @@ on:
8080
description: "Linux command to execute before building the Swift package"
8181
default: ""
8282

83+
permissions:
84+
contents: read
85+
8386
## We are cancelling previously triggered workflow runs
8487
concurrency:
8588
group: ${{ github.workflow }}-${{ github.ref }}-soundness
@@ -92,7 +95,7 @@ jobs:
9295
runs-on: ubuntu-latest
9396
container:
9497
image: ${{ inputs.api_breakage_check_container_image }}
95-
timeout-minutes: 20
98+
timeout-minutes: 40
9699
steps:
97100
- name: Checkout repository
98101
uses: actions/checkout@v4

.github/workflows/swift_package_test.yml

Lines changed: 25 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,15 @@
11
name: Swift Matrix
22

3+
permissions:
4+
contents: read
5+
36
on:
47
workflow_call:
58
inputs:
69
macos_xcode_versions:
710
type: string
811
description: "Xcode version list (JSON)"
9-
default: "[\"16.2\", \"16.3\", \"26.b6\"]"
12+
default: "[\"16.3\", \"16.4\", \"26.0\"]"
1013
macos_exclude_xcode_versions:
1114
type: string
1215
description: "Exclude Xcode version list (JSON)"
@@ -22,7 +25,7 @@ on:
2225
linux_swift_versions:
2326
type: string
2427
description: "Include Linux Swift version list (JSON)"
25-
default: "[ \"5.9\", \"5.10\", \"6.0\", \"6.1\", \"nightly-main\", \"nightly-6.2\"]"
28+
default: "[ \"5.9\", \"5.10\", \"6.0\", \"6.1\", \"6.2\", \"nightly-main\", \"nightly-6.2\"]"
2629
linux_exclude_swift_versions:
2730
type: string
2831
description: "Exclude Linux Swift version list (JSON)"
@@ -34,11 +37,15 @@ on:
3437
linux_static_sdk_versions:
3538
type: string
3639
description: "Static Linux Swift SDK version list (JSON)"
37-
default: "[\"nightly-6.2\"]"
40+
default: "[\"nightly-main\", \"nightly-6.2\", \"6.2\"]"
41+
linux_static_sdk_exclude_swift_versions:
42+
type: string
43+
description: "Exclude Static Linux Swift SDK version list (JSON)"
44+
default: "[{\"swift_version\": \"\"}]"
3845
wasm_sdk_versions:
3946
type: string
4047
description: "Wasm Swift SDK version list (JSON)"
41-
default: "[\"nightly-main\", \"nightly-6.2\"]"
48+
default: "[\"nightly-main\", \"nightly-6.2\", \"6.2\"]"
4249
wasm_exclude_swift_versions:
4350
type: string
4451
description: "Exclude Wasm Swift SDK version list (JSON)"
@@ -47,7 +54,7 @@ on:
4754
type: string
4855
description: "Include Windows Swift version list (JSON)"
4956
# "5.10" is omitted for Windows because the container image is broken.
50-
default: "[\"5.9\", \"6.0\", \"6.1\", \"nightly\", \"nightly-6.2\"]"
57+
default: "[\"5.9\", \"6.0\", \"6.1\", \"6.2\", \"nightly\", \"nightly-6.2\"]"
5158
windows_exclude_swift_versions:
5259
type: string
5360
description: "Exclude Windows Swift version list (JSON)"
@@ -216,6 +223,8 @@ jobs:
216223
run: echo "DEVELOPER_DIR=/Applications/Xcode_${{ matrix.xcode_version }}.app" >> $GITHUB_ENV
217224
- name: Swift version
218225
run: xcrun swift --version
226+
- name: Clang version
227+
run: xcrun clang --version
219228
- name: Pre-build
220229
run: ${{ inputs.macos_pre_build_command }}
221230
- name: Build / Test
@@ -238,6 +247,8 @@ jobs:
238247
steps:
239248
- name: Swift version
240249
run: swift --version
250+
- name: Clang version
251+
run: clang --version
241252
- name: Checkout repository
242253
uses: actions/checkout@v4
243254
if: ${{ matrix.os_version != 'amazonlinux2' }}
@@ -275,11 +286,15 @@ jobs:
275286
matrix:
276287
swift_version: ${{ fromJson(inputs.linux_static_sdk_versions) }}
277288
os_version: ${{ fromJson(inputs.linux_os_versions) }}
289+
exclude:
290+
- ${{ fromJson(inputs.linux_static_sdk_exclude_swift_versions) }}
278291
container:
279292
image: ${{ (contains(matrix.swift_version, 'nightly') && 'swiftlang/swift') || 'swift' }}:${{ matrix.swift_version }}-${{ matrix.os_version }}
280293
steps:
281294
- name: Swift version
282295
run: swift --version
296+
- name: Clang version
297+
run: clang --version
283298
- name: Checkout repository
284299
uses: actions/checkout@v4
285300
if: ${{ matrix.os_version != 'amazonlinux2' }}
@@ -335,6 +350,8 @@ jobs:
335350
steps:
336351
- name: Swift version
337352
run: swift --version
353+
- name: Clang version
354+
run: clang --version
338355
- name: Checkout repository
339356
uses: actions/checkout@v4
340357
if: ${{ matrix.os_version != 'amazonlinux2' }}
@@ -390,6 +407,8 @@ jobs:
390407
steps:
391408
- name: Swift version
392409
run: swift --version
410+
- name: Clang version
411+
run: clang --version
393412
- name: Checkout repository
394413
uses: actions/checkout@v4
395414
- name: Provide token
@@ -494,6 +513,7 @@ jobs:
494513
}
495514
Invoke-Program swift --version
496515
Invoke-Program swift test --version
516+
Invoke-Program clang --version
497517
Invoke-Program cd $Source
498518
'@ >> $env:TEMP\test-script\run.ps1
499519

0 commit comments

Comments
 (0)