Skip to content

Update webrtc-builds.yml #11

Update webrtc-builds.yml

Update webrtc-builds.yml #11

Workflow file for this run

name: WebRTC xcframework builds
on:
push:
tags:
- "*"
workflow_dispatch:
jobs:
build:
strategy:
fail-fast: false
name: Build webrtc xcframework
runs-on: macos-13
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-python@v4
- run: pip3 install setuptools
- name: Install macos dependencies
run: brew install ninja
- name: Print ninja version
run: ninja --version
- name: Target OS
run: echo -e "\ntarget_os = [\"mac\",\"ios\",]" >> .gclient
shell: bash
working-directory: build
- name: Build WebRTC
run: chmod +x ./xcframework_dynamic_build.sh && ./xcframework_dynamic_build.sh release
working-directory: build
- name: Upload artifacts
uses: actions/upload-artifact@v3
with:
name: webrtc-xcframework
path: build/out-release/WebRTC.xcframework.zip*
release:
name: Release to GH (Draft)
runs-on: ubuntu-latest
needs: build
permissions:
contents: write
if: startsWith(github.ref, 'refs/tags')
env:
GH_TOKEN: ${{ github.token }}
steps:
- uses: actions/checkout@v3
- name: Download artifacts
uses: actions/download-artifact@v3
with:
name: webrtc-xcframework
path: ${{ github.workspace }}/webrtc-xcframework
- name: Create draft release
run: |
gh release create ${{ github.ref_name }} --draft --title "${{ github.ref_name }}"
gh release upload ${{ github.ref_name }} ${{ github.workspace }}/webrtc-xcframework/*