Skip to content

update v4l2 (fix compile issue) #183

update v4l2 (fix compile issue)

update v4l2 (fix compile issue) #183

Workflow file for this run

#Copy paste from crossterm
name: termchat ci
on:
# Build master branch only
push:
branches:
- master
# Build pull requests targeting master branch only
pull_request:
branches:
- master
jobs:
test:
name: ${{matrix.rust}} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-2019, macOS-latest]
rust: [stable, nightly]
# Allow failures on nightly, it's just informative
include:
- rust: stable
can-fail: false
- rust: nightly
can-fail: true
steps:
- name: Checkout Repository
uses: actions/checkout@v1
with:
fetch-depth: 1
- name: Install Rust
uses: hecrj/setup-rust-action@master
with:
rust-version: ${{ matrix.rust }}
components: rustfmt,clippy
- name: Toolchain Information
run: |
rustc --version
rustfmt --version
rustup --version
cargo --version
- name: Check Formatting
if: matrix.rust == 'nightly'
run: cargo fmt --all -- --check
continue-on-error: ${{ matrix.can-fail }}
- name: Clippy
run: cargo clippy --all-features -- -D clippy::all
continue-on-error: ${{ matrix.can-fail }}
- name: Test Build
run: cargo build --all-features
continue-on-error: ${{ matrix.can-fail }}
- name: Test default features
# ui-test feature breaks ci, so we add each feature individually, example: --features featA,featB,featC
run: cargo test --features stream-video
continue-on-error: ${{ matrix.can-fail }}
- name: Test Packaging
if: matrix.rust == 'stable'
run: cargo package --all-features
continue-on-error: ${{ matrix.can-fail }}