* Changes from #580 * fixes USB cancel panic * style fixes * Update src/env/tock/storage.rs Co-authored-by: Zach Halvorsen <zhalvorsen@google.com> --------- Co-authored-by: Zach Halvorsen <zhalvorsen@google.com>
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
---
|
|
name: Cargo Clippy
|
|
on:
|
|
push:
|
|
pull_request:
|
|
types: [opened, synchronize, reopened]
|
|
|
|
jobs:
|
|
cargo_clippy:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
with:
|
|
submodules: "true"
|
|
- name: Install Rust toolchain
|
|
run: rustup show
|
|
- uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.7
|
|
- name: Install Python dependencies
|
|
run: python -m pip install --upgrade pip setuptools wheel
|
|
- name: Set up OpenSK
|
|
run: ./setup.sh
|
|
|
|
- uses: actions-rs/clippy-check@v1
|
|
with:
|
|
token: ${{ secrets.GITHUB_TOKEN }}
|
|
args: --features std
|
|
- name: Deny Clippy warnings (std)
|
|
run: cargo clippy --features std -- -D warnings
|
|
- name: Deny Clippy warnings (all)
|
|
run: cargo clippy --features std,with_ctap1,ed25519,vendor_hid -- -D warnings
|
|
- name: Deny Clippy warnings (all, nfc)
|
|
run: cargo clippy --features std,with_ctap1,with_nfc,ed25519,vendor_hid -- -D warnings
|