Skip to content

Commit e1f7f9c

Browse files
authored
ci: pin darwin release xcode (#16788)
1 parent 8c432fc commit e1f7f9c

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

‎.github/workflows/release.yaml‎

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,27 @@ jobs:
3939
APPLE_ID: ${{ vars.APPLE_ID }}
4040
MACOS_SIGNING_KEY: ${{ secrets.MACOS_SIGNING_KEY }}
4141
MACOS_SIGNING_KEY_PASSWORD: ${{ secrets.MACOS_SIGNING_KEY_PASSWORD }}
42+
DEVELOPER_DIR: /Applications/Xcode_26.4.1.app/Contents/Developer
4243
CGO_CFLAGS: '-mmacosx-version-min=14.0 -O3'
4344
CGO_CXXFLAGS: '-mmacosx-version-min=14.0 -O3'
4445
CGO_LDFLAGS: '-mmacosx-version-min=14.0 -O3'
4546
steps:
4647
- uses: actions/checkout@v4
48+
- name: Select Xcode 26.4.1
49+
shell: bash
50+
run: |
51+
set -euo pipefail
52+
if [ ! -d "${DEVELOPER_DIR}" ]; then
53+
echo "Missing ${DEVELOPER_DIR}"
54+
ls -1 /Applications | grep '^Xcode' || true
55+
exit 1
56+
fi
57+
58+
sudo xcode-select -s "${DEVELOPER_DIR}"
59+
sw_vers
60+
xcodebuild -version
61+
xcrun --sdk macosx --show-sdk-version
62+
xcrun --find metal
4763
- run: |
4864
echo $MACOS_SIGNING_KEY | base64 --decode > certificate.p12
4965
security create-keychain -p password build.keychain

0 commit comments

Comments
 (0)