-
Notifications
You must be signed in to change notification settings - Fork 58
89 lines (80 loc) · 2.65 KB
/
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
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
# Copyright 2023 LiveKit, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
name: Builds
on:
push:
branches: ["main"]
paths:
- livekit/**
- libwebrtc/**
pull_request:
branches: ["main"]
paths:
- livekit/**
- libwebrtc/**
env:
CARGO_TERM_COLOR: always
jobs:
build:
strategy:
fail-fast: false
matrix:
include:
- os: windows-2019
target: x86_64-pc-windows-msvc
- os: windows-2019
target: aarch64-pc-windows-msvc
#extraargs: --exclude livekit-api --exclude livekit-ffi # waiting for v0.17 of ring
- os: macos-13
target: x86_64-apple-darwin
- os: macos-13
target: aarch64-apple-darwin
- os: macos-13
target: aarch64-apple-ios
- os: macos-13
target: aarch64-apple-ios-sim
- os: ubuntu-20.04
target: x86_64-unknown-linux-gnu
- os: buildjet-4vcpu-ubuntu-2204-arm
target: aarch64-unknown-linux-gnu
- os: ubuntu-20.04
target: aarch64-linux-android
- os: ubuntu-20.04
target: armv7-linux-androideabi
- os: ubuntu-20.04
target: x86_64-linux-android
name: Build (${{ matrix.target }})
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install linux dependencies
if: ${{ matrix.os == 'ubuntu-20.04' || matrix.os == 'buildjet-4vcpu-ubuntu-2204-arm'}}
run: |
sudo apt update -y
sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
target: ${{ matrix.target }}
- name: Build (Cargo)
if: ${{ !contains(matrix.target, 'android') }}
run: |
cargo build --release --workspace -p livekit --target ${{ matrix.target }}
- name: Build (Android)
if: ${{ contains(matrix.target, 'android') }}
run: |
cargo install cargo-ndk
cargo ndk --target ${{ matrix.target }} build --release -p livekit --workspace -vv