Skip to content

Commit b9c90ef

Browse files
henrymercerCopilot
andcommitted
Pin Swift macOS checks to macOS 15 for Xcode 16
`macos-latest-xlarge` now resolves to macOS 26, which ships only Xcode 26 (Swift 6.2) and no longer includes Xcode 16. The Swift-analysing PR checks select Xcode 16 because CodeQL CLI versions before 2.24.0 only support Swift up to 6.1, so `xcode-select -s /Applications/Xcode_16.app` fails on macOS 26. Pin these checks to macOS 15, where Xcode 16 is still available, so we keep testing the full matrix of supported CodeQL versions. This also pre-empts the `swift-custom-build` check failing once plain `macos`/`macos-latest` migrates. See actions/runner-images#14167. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 09dec6c commit b9c90ef

4 files changed

Lines changed: 21 additions & 14 deletions

File tree

.github/workflows/__multi-language-autodetect.yml

Lines changed: 9 additions & 9 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.github/workflows/__swift-custom-build.yml

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pr-checks/checks/multi-language-autodetect.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,11 @@ name: "Multi-language repository"
22
description: "An end-to-end integration test of a multi-language repository using automatic language detection"
33
operatingSystems:
44
- ubuntu
5+
# Pin to macOS 15 rather than `macos-latest`: the older CodeQL CLI versions in the
6+
# matrix only support Swift up to 6.1 (Xcode 16), which is not available on macOS 26
7+
# (ships Xcode 26 / Swift 6.2). See https://github.com/actions/runner-images/issues/14167.
58
- os: macos
6-
runner-image: macos-latest-xlarge
9+
runner-image: macos-15-xlarge
710
env:
811
CODEQL_ACTION_RESOLVE_SUPPORTED_LANGUAGES_USING_CLI: true
912
installGo: true

pr-checks/checks/swift-custom-build.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,11 @@ versions:
55
- default
66
- nightly-latest
77
operatingSystems:
8-
- macos
8+
# Pin to macOS 15 rather than `macos-latest`: the `linked`/`default` CodeQL CLI versions
9+
# are analysed with Xcode 16, which is not available on macOS 26 (ships Xcode 26 / Swift
10+
# 6.2). See https://github.com/actions/runner-images/issues/14167.
11+
- os: macos
12+
runner-image: macos-15
913
installGo: true
1014
installDotNet: true
1115
env:

0 commit comments

Comments
 (0)