Skip to content

install.sh: add libxcb-randr0 to Linux client deps #265

install.sh: add libxcb-randr0 to Linux client deps

install.sh: add libxcb-randr0 to Linux client deps #265

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
check-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
- name: Check server (Windows features)
run: cargo check -p phantom-server --features audio
- name: Check client (Windows features, no dav1d)
run: cargo check -p phantom-client --no-default-features --features audio
- name: Clippy
run: cargo clippy -p phantom-server --features audio -p phantom-client --no-default-features --features audio -p phantom-core -p phantom-gpu -- -D warnings
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- uses: Swatinem/rust-cache@v2
- name: Install system dependencies
run: |
sudo apt-get update && sudo apt-get install -y \
libxcb1-dev libxcb-shm0-dev libxcb-randr0-dev libxdo-dev \
libdav1d-dev nasm cmake \
libpulse-dev libopus-dev libasound2-dev
- name: Format
run: cargo fmt --all -- --check
- name: Build WASM (needed for server)
run: |
cargo install wasm-pack
wasm-pack build crates/web --target web --no-typescript
- name: Clippy
run: cargo clippy --workspace -- -D warnings
- name: Doc
run: RUSTDOCFLAGS="-D warnings" cargo doc --workspace --no-deps
- name: Test
run: cargo test --workspace