Open source CapCut alternative.
TypeScript
ci(donkey): select Xcode 26 SDK before packaging
David Le9b15ac241144
diff --git a/.github/workflows/nightly-donkey-build.yml b/.github/workflows/nightly-donkey-build.ymlindex 02440845..24f5d225 100644--- a/.github/workflows/nightly-donkey-build.yml+++ b/.github/workflows/nightly-donkey-build.yml@@ -15,8 +15,9 @@ concurrency:jobs:nightly:name: Build nightly- # macOS 26 image ships the Xcode 26 SDK, which defines the SpeechAnalyzer /+ # The macos-26 image carries the Xcode 26 SDK that defines the SpeechAnalyzer /# SpeechTranscriber APIs the app compiles against (gated to macOS 26 at runtime).+ # A later step selects that Xcode explicitly; the image default is not guaranteed.runs-on: macos-26steps:@@ -105,6 +106,30 @@ jobs:if: steps.changes.outputs.should_build == 'true' && steps.tools-cache.outputs.cache-hit != 'true'run: ./scripts/fetch-bundled-tools.sh+ # The macos-26 image ships several Xcodes and xcode-select does not reliably+ # default to the macOS 26 one, whose Speech SDK defines SpeechAnalyzer /+ # SpeechTranscriber. Pin DEVELOPER_DIR to the newest Xcode 26 so the build+ # compiles against the macOS 26 SDK.+ - name: Select Xcode with the macOS 26 SDK+ if: steps.changes.outputs.should_build == 'true'+ run: |+ dir="$(ls -d /Applications/Xcode_26*.app 2>/dev/null | sort -V | tail -1)"+ if [[ -z "$dir" ]]; then+ echo "No Xcode 26 found on this runner. Installed Xcodes:" >&2+ ls -d /Applications/Xcode*.app >&2 || true+ exit 1+ fi+ developer_dir="$dir/Contents/Developer"+ sudo xcode-select -s "$developer_dir"+ echo "DEVELOPER_DIR=$developer_dir" >> "$GITHUB_ENV"+ xcodebuild -version+ sdk_version="$(xcrun --sdk macosx --show-sdk-version)"+ echo "macOS SDK: $sdk_version"+ if [[ "${sdk_version%%.*}" -lt 26 ]]; then+ echo "Selected SDK $sdk_version predates macOS 26; SpeechAnalyzer is unavailable." >&2+ exit 1+ fi+- name: Package Donkeyif: steps.changes.outputs.should_build == 'true'env:diff --git a/.github/workflows/promote-donkey-release.yml b/.github/workflows/promote-donkey-release.ymlindex 2618c900..64ffba91 100644--- a/.github/workflows/promote-donkey-release.yml+++ b/.github/workflows/promote-donkey-release.yml@@ -23,8 +23,9 @@ concurrency:jobs:release:name: Build and release- # macOS 26 image ships the Xcode 26 SDK, which defines the SpeechAnalyzer /+ # The macos-26 image carries the Xcode 26 SDK that defines the SpeechAnalyzer /# SpeechTranscriber APIs the app compiles against (gated to macOS 26 at runtime).+ # A later step selects that Xcode explicitly; the image default is not guaranteed.runs-on: macos-26steps:@@ -129,6 +130,29 @@ jobs:if: steps.tools-cache.outputs.cache-hit != 'true'run: ./scripts/fetch-bundled-tools.sh+ # The macos-26 image ships several Xcodes and xcode-select does not reliably+ # default to the macOS 26 one, whose Speech SDK defines SpeechAnalyzer /+ # SpeechTranscriber. Pin DEVELOPER_DIR to the newest Xcode 26 so the build+ # compiles against the macOS 26 SDK.+ - name: Select Xcode with the macOS 26 SDK+ run: |+ dir="$(ls -d /Applications/Xcode_26*.app 2>/dev/null | sort -V | tail -1)"+ if [[ -z "$dir" ]]; then+ echo "No Xcode 26 found on this runner. Installed Xcodes:" >&2+ ls -d /Applications/Xcode*.app >&2 || true+ exit 1+ fi+ developer_dir="$dir/Contents/Developer"+ sudo xcode-select -s "$developer_dir"+ echo "DEVELOPER_DIR=$developer_dir" >> "$GITHUB_ENV"+ xcodebuild -version+ sdk_version="$(xcrun --sdk macosx --show-sdk-version)"+ echo "macOS SDK: $sdk_version"+ if [[ "${sdk_version%%.*}" -lt 26 ]]; then+ echo "Selected SDK $sdk_version predates macOS 26; SpeechAnalyzer is unavailable." >&2+ exit 1+ fi+- name: Package Donkeyenv:DONKEY_APP_VERSION: ${{ steps.release.outputs.version }}