Skip to content

Commit a38271f

Browse files
authored
fix Builds/E2E Tests CI. (#715)
* fix tests CI. * Update builds.yml * fix build for ios. * add VideoResolution::default(). * revert changes. * fmt.
1 parent 56178e3 commit a38271f

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed

.github/workflows/builds.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,11 @@ jobs:
7575
sudo apt update -y
7676
sudo apt install -y libssl-dev libx11-dev libgl1-mesa-dev libxext-dev
7777
78+
- name: Install VA-API/NVIDIA drivers for linux x64 build
79+
if: ${{ matrix.os == 'ubuntu-latest'}}
80+
run: |
81+
sudo apt install -y libva-dev libdrm-dev libnvidia-compute-570 libnvidia-decode-570 nvidia-cuda-dev -y
82+
7883
- uses: actions-rs/toolchain@v1
7984
with:
8085
toolchain: stable

libwebrtc/src/video_source.rs

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,19 @@ use livekit_protocol::enum_dispatch;
1616

1717
use crate::imp::video_source as vs_imp;
1818

19-
#[derive(Default, Debug, Clone)]
19+
#[derive(Debug, Clone)]
2020
pub struct VideoResolution {
2121
pub width: u32,
2222
pub height: u32,
2323
}
2424

25+
impl Default for VideoResolution {
26+
// Default to 720p
27+
fn default() -> Self {
28+
VideoResolution { width: 1280, height: 720 }
29+
}
30+
}
31+
2532
#[non_exhaustive]
2633
#[derive(Debug, Clone)]
2734
pub enum RtcVideoSource {

webrtc-sys/build.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,7 @@ fn main() {
219219
.flag("-std=c++20");
220220
}
221221
"ios" => {
222+
println!("cargo:rustc-link-lib=framework=Foundation");
222223
println!("cargo:rustc-link-lib=framework=CoreFoundation");
223224
println!("cargo:rustc-link-lib=framework=AVFoundation");
224225
println!("cargo:rustc-link-lib=framework=CoreAudio");

0 commit comments

Comments
 (0)