Build iOS WebRTC on CI #2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# SPDX-FileCopyrightText: 2025 Nextcloud GmbH and Nextcloud contributors | |
# SPDX-License-Identifier: MIT | |
name: Build main target | |
on: | |
pull_request: | |
workflow_dispatch: | |
inputs: | |
webrtcBranch: | |
description: 'WebRTC branch (numeric)' | |
required: true | |
type: number | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
env: | |
WEBRTC_BRANCH: "6834" | |
jobs: | |
build: | |
name: Build | |
runs-on: macos-15 | |
steps: | |
- name: Checkout app | |
uses: actions/checkout@v4 | |
with: | |
path: talk-clients-webrtc | |
- name: Debug | |
run: | | |
ls -ahl | |
pwd | |
echo ${{ github.workspace }} | |
ls -ahl ${{ github.workspace }}/talk-clients-webrtc/ios/patches/*.patch | |
exit 1 | |
- name: Setup depot tools | |
run: | | |
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git | |
readlink -f depot_tools >> $GITHUB_PATH | |
- name: Link python | |
run: sudo ln -s /Applications/Xcode.app/Contents/Developer/usr/bin/python3 /usr/local/bin/python | |
- name: Build iOS WebRTC lib | |
run: | | |
mkdir webrtc_ios && cd webrtc_ios | |
fetch --nohooks webrtc_ios | |
gclient sync | |
cd src | |
git checkout -b branch_${{ env.WEBRTC_BRANCH }} branch-heads/${{ env.WEBRTC_BRANCH }} | |
gclient sync -D | |
git apply ${{ github.workspace }}/talk-clients-webrtc/ios/patches/*.patch | |
cd tools_webrtc/ios | |
python build_ios_libs.py | |
- name: Upload build | |
uses: actions/upload-artifact@v4 | |
with: | |
name: WebRTC.xcframework | |
path: webrtc_ios/src/out_ios_libs/WebRTC.xcframework | |
retention-days: 4 |