CI: select Xcode 26 on the runner

The first run's Xcode job failed at the dext's link: the macos-15 image
defaults to Xcode 16.4, whose DriverKit 24.5 SDK lacks IOSysCtlByName
(linuxu's page and sysinfo shims use it) and does not support the
project's DriverKit 25.2 deployment target. Both jobs now select the
image's newest Xcode 26 and fail with a clear error, listing the Xcodes
present, when there is none.
This commit is contained in:
geramyloveless committed 2026-10-04 21:37:11 -07:00
1 parent c37b7a242d
commit fc33e7eef0
1 file changed
+27 -1
+27 -1
View File
@@ -3,7 +3,9 @@
# software GPU and the DCN 4.0.1 display fixture; no GPU), the release
# check (no debug instrumentation in release objects), the HSA runtime's
# unit tests, and unsigned Xcode builds of the dext and the host app. No
# signing: the signed build and installer stay on a developer Mac.
# signing: the signed build and installer stay on a developer Mac. Both jobs
# select Xcode 26: the dext targets DriverKit 25.2, and the image's default
# Xcode 16 (DriverKit 24.5) lacks APIs it uses (IOSysCtlByName).
#
# Not run here: the Vulkan offline tests need RADV and llama.cpp built
# (make radv, make llama-vulkan; about an hour more), so test-radv-offline,
@@ -28,6 +30,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Xcode 26 (DriverKit 25, as the project targets)
run: |
xcode=$(ls -d /Applications/Xcode_26*.app 2>/dev/null | sort -V | tail -1)
if [ -z "$xcode" ]; then
echo "::error::this runner image has no Xcode 26; the dext needs DriverKit 25"
ls -d /Applications/Xcode*.app
exit 1
fi
sudo xcode-select -s "$xcode"
xcodebuild -version
xcrun --sdk driverkit --show-sdk-version
- name: Tools
run: brew install ripgrep cmake
@@ -59,6 +73,18 @@ jobs:
steps:
- uses: actions/checkout@v4
- name: Xcode 26 (DriverKit 25, as the project targets)
run: |
xcode=$(ls -d /Applications/Xcode_26*.app 2>/dev/null | sort -V | tail -1)
if [ -z "$xcode" ]; then
echo "::error::this runner image has no Xcode 26; the dext needs DriverKit 25"
ls -d /Applications/Xcode*.app
exit 1
fi
sudo xcode-select -s "$xcode"
xcodebuild -version
xcrun --sdk driverkit --show-sdk-version
- name: Upstream checkouts (cached)
uses: actions/cache@v4
with: