Skip to content

merge: PR #160 from ut-utp/device_adc #92

merge: PR #160 from ut-utp/device_adc

merge: PR #160 from ut-utp/device_adc #92

Workflow file for this run

on:
push:
paths:
- 'device-support/**'
name: device-support
jobs:
check:
name: Check + test
strategy:
fail-fast: false
matrix:
crate: [ lc3-device-support ]
features: ['', no_std, alloc, host_transport ]
os: [ windows-latest, ubuntu-latest, macOS-latest ]
rust:
- stable
- beta
- nightly
- 1.38.0
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
- name: Run cargo check
uses: actions-rs/cargo@v1
with:
command: check
args: -p ${{ matrix.crate }} --no-default-features --features ${{ matrix.features }}
- name: Run cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: -p ${{ matrix.crate }} --no-default-features --features ${{ matrix.features }} -- --include-ignored
lint:
name: Format + run clippy
strategy:
fail-fast: false
matrix:
crate: [ lc3-device-support ]
features: ['', no_std, alloc, host_transport ]
os: [ ubuntu-latest ]
rust: [ stable, nightly ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@master
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: ${{ matrix.rust }}
override: true
components: rustfmt, clippy
- name: Run cargo fmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: -p ${{ matrix.crate }} --no-default-features --features ${{ matrix.features }} -- --check
- name: Run cargo clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: -p ${{ matrix.crate }} --no-default-features --features ${{ matrix.features }} -- -D warnings