Skip to content

Commit b068cf6

Browse files
committed
Add iOS and iOS simulator to the build
1 parent 0e11aa5 commit b068cf6

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

.github/workflows/build.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,25 @@ jobs:
2323
git checkout ${HASH}
2424
2525
gclient sync
26-
26+
2727
export OUTPUT_DIR=${TMPDIR}${HASH}
28-
28+
2929
gn gen ${OUTPUT_DIR}/mac_x64 --args='target_os="mac" target_cpu="x64" is_component_build=false is_debug=false rtc_libvpx_build_vp9=false enable_stripping=true rtc_enable_protobuf=false'
30+
gn gen ${OUTPUT_DIR}/ios_x64 --args='target_os="ios" target_cpu="x64" is_component_build=false use_xcode_clang=true is_debug=true ios_deployment_target="10.0" rtc_libvpx_build_vp9=false use_goma=false ios_enable_code_signing=false enable_stripping=true rtc_enable_protobuf=false enable_ios_bitcode=false treat_warnings_as_errors=false'
31+
gn gen ${OUTPUT_DIR}/ios_arm64 --args='target_os="ios" target_cpu="arm64" is_component_build=false use_xcode_clang=true is_debug=false ios_deployment_target="10.0" rtc_libvpx_build_vp9=false use_goma=false ios_enable_code_signing=false enable_stripping=true rtc_enable_protobuf=false enable_ios_bitcode=false treat_warnings_as_errors=false'
3032
3133
ninja -C ${OUTPUT_DIR}/mac_x64 sdk:mac_framework_objc
32-
34+
ninja -C ${OUTPUT_DIR}/ios_x64 sdk:framework_objc
35+
ninja -C ${OUTPUT_DIR}/ios_arm64 sdk:framework_objc
36+
3337
xcodebuild -create-xcframework \
3438
-framework ${OUTPUT_DIR}/mac_x64/WebRTC.framework \
39+
-framework ${OUTPUT_DIR}/ios_x64/WebRTC.framework \
40+
-framework ${OUTPUT_DIR}/ios_arm64/WebRTC.framework \
3541
-output ${OUTPUT_DIR}/WebRTC.xcframework
36-
42+
3743
cd ${OUTPUT_DIR}
38-
44+
3945
git init
4046
git remote add origin "https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git"
4147
git pull origin main

0 commit comments

Comments
 (0)