-
Notifications
You must be signed in to change notification settings - Fork 80
64 lines (54 loc) · 1.64 KB
/
webrtc-builds.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
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/*