-
Notifications
You must be signed in to change notification settings - Fork 40
104 lines (101 loc) · 2.63 KB
/
build.yml
File metadata and controls
104 lines (101 loc) · 2.63 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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
name: build
on:
workflow_dispatch:
inputs:
commitHash:
description: 'webrtc-sdk commit hash'
default: ''
required: true
configuration:
description: 'build configuration'
default: 'release'
required: true
type: choice
options:
- release
- debug
push:
paths-ignore:
- '**.md'
- 'LICENSE'
- 'NOTICE'
- '.gitignore'
- '.dockerignore'
branches-ignore:
- daily
tags:
- '*'
permissions:
packages: write
contents: write
actions: read
jobs:
build-apple:
defaults:
run:
working-directory: ./build
strategy:
fail-fast: false
matrix:
name:
- apple
- apple_prefixed
runs-on: macos-26
steps:
- uses: actions/checkout@v5
- name: Select Xcode 26.0
run: sudo xcode-select --switch /Applications/Xcode_26.0.app/Contents/Developer
- name: Build
id: build
run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}" "${{ github.event.inputs.configuration || 'release' }}"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: ${{ steps.build.outputs.framework_name }}.xcframework.zip
path: build/_package/${{ matrix.name }}/${{ steps.build.outputs.framework_name }}.xcframework.zip
build-linux:
defaults:
run:
working-directory: ./build
strategy:
fail-fast: false
matrix:
name:
- android
- android_prefixed
- android_prefixed_stripped
runs-on: namespace-profile-webrtc-android
steps:
- uses: actions/checkout@v4
- run: ./build.${{ matrix.name }}.sh "${{ github.event.inputs.commitHash }}"
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: webrtc.${{ matrix.name }}.tar.gz
path: build/_package/${{ matrix.name }}/webrtc.tar.gz
create-release:
name: Create Release
if: github.ref_type == 'tag'
needs:
- build-apple
- build-linux
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
path: artifacts
name: webrtc.android_prefixed.tar.gz
- uses: actions/download-artifact@v4
with:
path: artifacts
name: webrtc.android_prefixed_stripped.tar.gz
- uses: actions/download-artifact@v4
with:
path: artifacts
name: LiveKitWebRTC.xcframework.zip
- uses: softprops/action-gh-release@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
files: artifacts/**