Skip to content

Commit 6431d38

Browse files
Use Xcode 16 in GitHub workflows
1 parent 1f28f7c commit 6431d38

2 files changed

Lines changed: 22 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,16 @@ jobs:
1212
- name: Check out repository
1313
uses: actions/checkout@v4
1414

15+
- name: Select Xcode 16
16+
run: |
17+
DEVELOPER_APP="$(find /Applications -maxdepth 1 -type d -name 'Xcode_16*.app' | sort | tail -n 1)"
18+
if [[ -z "${DEVELOPER_APP}" ]]; then
19+
echo "No Xcode 16 installation found on runner." >&2
20+
exit 1
21+
fi
22+
sudo xcode-select -s "${DEVELOPER_APP}/Contents/Developer"
23+
xcodebuild -version
24+
swift --version
25+
1526
- name: Build
1627
run: swift build

.github/workflows/release.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,17 @@ jobs:
1616
- name: Check out repository
1717
uses: actions/checkout@v4
1818

19+
- name: Select Xcode 16
20+
run: |
21+
DEVELOPER_APP="$(find /Applications -maxdepth 1 -type d -name 'Xcode_16*.app' | sort | tail -n 1)"
22+
if [[ -z "${DEVELOPER_APP}" ]]; then
23+
echo "No Xcode 16 installation found on runner." >&2
24+
exit 1
25+
fi
26+
sudo xcode-select -s "${DEVELOPER_APP}/Contents/Developer"
27+
xcodebuild -version
28+
swift --version
29+
1930
- name: Show toolchain versions
2031
run: |
2132
sw_vers

0 commit comments

Comments
 (0)