[fix] reuse host Python and capture iOS dependency failures

This commit is contained in:
dijunkun
2026-11-07 03:55:29 +08:00
parent 80760cab47
commit da4ffa6f06
3 changed files with 13 additions and 2 deletions
+5 -1
View File
@@ -221,7 +221,10 @@ jobs:
PLATFORM_NAME: iphoneos
CURRENT_ARCH: arm64
CROSSDESK_NATIVE_VERBOSE: "1"
run: apps/ios/scripts/build_minirtc_ios.sh --configure-only
run: |
set -o pipefail
apps/ios/scripts/build_minirtc_ios.sh --configure-only 2>&1 | \
tee "${RUNNER_TEMP}/ios-native-prepare.log"
- name: Save native dependencies
if: steps.native-cache-key.outputs.incremental == 'true' && steps.native-cache.outputs.cache-hit != 'true'
@@ -291,6 +294,7 @@ jobs:
with:
name: ios-build-diagnostics-${{ github.run_id }}-${{ github.run_attempt }}
path: |
${{ runner.temp }}/ios-native-prepare.log
${{ runner.temp }}/ios-native-build.log
${{ runner.temp }}/ios-app-build.log
~/.xmake/cache/packages/**/logs/*.txt
+7
View File
@@ -100,6 +100,13 @@ for host_bin in "${(@s/:/)PATH}"; do
XMAKE_HOST_PATH+=":${host_bin}"
fi
done
# MiniRTC explicitly uses host Python for its build tools. Check its modules
# before dependency resolution so a missing setup fails with an actionable error.
if ! /usr/bin/env -i HOME="${HOME}" PATH="${XMAKE_HOST_PATH}" \
python3 -B -c 'import setuptools, wheel, pip'; then
print -u2 "Host Python 3 with pip, setuptools and wheel is required. Install them in the Python environment on PATH before building."
exit 69
fi
run_xmake() {
# Match desktop repository selection: use Xmake defaults unless explicitly
# overridden by the caller. Only compiled iOS packages use a separate cache.