-
Notifications
You must be signed in to change notification settings - Fork 4
88 lines (77 loc) · 2.67 KB
/
build.yml
File metadata and controls
88 lines (77 loc) · 2.67 KB
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
name: "Build"
on:
workflow_dispatch:
inputs:
webrtc_branch:
description: "The branch of WebRTC to build from"
required: true
default: "main"
jobs:
build:
name: Build
runs-on: macos-15
steps:
- name: Connect Bot
uses: webfactory/ssh-agent@v0.7.0
with:
ssh-private-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
- name: Git authentication
run: |
echo "This step is required to bypass `git credential-luci login`"
git config --global credential.helper store
echo "https://${GITHUB_ACTOR}:${{ secrets.GITHUB_TOKEN }}@github.com" > ~/.git-credentials
- name: Checkout release pipeline
uses: actions/checkout@v5
with:
repository: GetStream/stream-webrtc-release-pipeline
ref: main
token: ${{ secrets.GITHUB_TOKEN }}
ssh-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
persist-credentials: false
- name: Checkout WebRTC branch
uses: actions/checkout@v5
with:
repository: GetStream/webrtc
ref: ${{ inputs.webrtc_branch }}
path: src
token: ${{ secrets.GITHUB_TOKEN }}
ssh-key: ${{ secrets.BOT_SSH_PRIVATE_KEY }}
persist-credentials: false
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 3.1
bundler-cache: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Ensure gclient is available
run: |
if ! command -v gclient &> /dev/null; then
current_dir=$(pwd)
mkdir -p "$HOME/webrtc"
cd "$HOME/webrtc"
git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git
export PATH="$PATH:$HOME/webrtc/depot_tools"
cd "$current_dir"
fi
if [ -d "$HOME/webrtc/depot_tools" ]; then
echo "$HOME/webrtc/depot_tools" >> "$GITHUB_PATH"
fi
- name: "Build"
env:
MATCH_PASSWORD: ${{ secrets.MATCH_PASSWORD }}
APPSTORE_API_KEY: ${{ secrets.APPSTORE_API_KEY }}
run: cd fastlane && bundle install && bundle exec fastlane ios build root:../src verbose:true maccatalyst_support:true
timeout-minutes: 120
- uses: actions/upload-artifact@v4
with:
name: StreamWebRTC.xcframework.zip
path: .products/StreamWebRTC.xcframework.zip
retention-days: 7
- uses: actions/upload-artifact@v4
with:
name: WebRTC.xcframework.zip
path: .products/WebRTC.xcframework.zip
retention-days: 7