Skip to content

Fix stale CTAPHID test offsets and drop dead descriptor rewriter #12

Fix stale CTAPHID test offsets and drop dead descriptor rewriter

Fix stale CTAPHID test offsets and drop dead descriptor rewriter #12

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
fmt:
name: cargo fmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- run: cargo fmt --all -- --check
clippy:
name: cargo clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev libclang-dev
- uses: Swatinem/rust-cache@v2
# Warnings are surfaced but not treated as errors yet; existing
# transport-core code triggers a number of clippy nits that will be
# cleaned up in follow-up commits.
- run: cargo clippy --workspace --all-targets
test:
name: cargo test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev libclang-dev
- uses: Swatinem/rust-cache@v2
- run: cargo test --workspace