fork/rust-sdks
git clone https://git.julia.blue/fork/rust-sdks
3507dc0
main
1# Copyright 2023 LiveKit, Inc. 2# 3# Licensed under the Apache License, Version 2.0 (the "License"); 4# you may not use this file except in compliance with the License. 5# You may obtain a copy of the License at 6# 7# http://www.apache.org/licenses/LICENSE-2.0 8# 9# Unless required by applicable law or agreed to in writing, software 10# distributed under the License is distributed on an "AS IS" BASIS, 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12# See the License for the specific language governing permissions and 13# limitations under the License. 14 15name : Builds 16 17on : 18push : 19branches : [ "main" ] 20paths : 21- livekit/** 22- libwebrtc/** 23pull_request : 24branches : [ "main" ] 25paths : 26- livekit/** 27- libwebrtc/** 28 29env : 30CARGO_TERM_COLOR : always 31 32jobs : 33build : 34strategy : 35fail-fast : false 36matrix : 37include : 38- os : windows-latest 39target : x86_64-pc-windows-msvc 40- os : windows-latest 41target : aarch64-pc-windows-msvc 42#extraargs: --exclude livekit-api --exclude livekit-ffi # waiting for v0.17 of ring 43- os : macos-latest 44target : x86_64-apple-darwin 45- os : macos-latest 46target : aarch64-apple-darwin 47- os : macos-latest 48target : aarch64-apple-ios 49- os : macos-latest 50target : aarch64-apple-ios-sim 51- os : ubuntu-latest 52target : x86_64-unknown-linux-gnu 53- os : ubuntu-24.04-arm 54target : aarch64-unknown-linux-gnu 55- os : ubuntu-latest 56target : aarch64-linux-android 57ndk_arch : aarch64-unknown-linux-musl 58- os : ubuntu-latest 59target : armv7-linux-androideabi 60ndk_arch : arm-unknown-linux-musleabihf 61- os : ubuntu-latest 62target : x86_64-linux-android 63ndk_arch : x86_64-unknown-linux-musl 64 65name : Build (${{ matrix.target }}) 66runs-on : ${{ matrix.os }} 67steps : 68- uses : actions/checkout@v4 69with : 70submodules : true 71 72- name : Install linux dependencies 73if : ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'ubuntu-24.04-arm'}} 74run : | 75sudo apt update -y 76sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev 77 78- uses : actions-rs/toolchain@v1 79with : 80toolchain : stable 81target : ${{ matrix.target }} 82 83- name : Build (Cargo) 84if : ${{ !contains(matrix.target, 'android') }} 85run : | 86cargo build --release --workspace -p livekit --target ${{ matrix.target }} 87 88- name : Build (Android) 89if : ${{ contains(matrix.target, 'android') }} 90run : | 91 ln -sf $ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/lib/${{ matrix.ndk_arch }}/{libunwind.so,libc++abi.a} $ANDROID_NDK_ROOT/toolchains/llvm/prebuilt/linux-x86_64/lib/ 92 cargo install cargo-ndk 93 cargo ndk --target ${{ matrix.target }} build --release -p livekit --workspace -vv