Skip to content

Add support for swapping out the HTTP Client #1406

Add support for swapping out the HTTP Client

Add support for swapping out the HTTP Client #1406

Workflow file for this run

# 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