-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (32 loc) · 1.1 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: CI
on:
pull_request:
branches: [main]
push:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Install Rust toolchain
run: |
rustup show
- name: Install build dependencies
run: >
sudo apt-get update -y -qq &&
sudo apt-get install -y -qq llvm libclang-dev
- name: Check all targets
run: |
cargo check --workspace --all-targets --no-default-features
cargo check --workspace --all-targets --no-default-features --features ctaphid
cargo check --workspace --all-targets --no-default-features --features ccid
cargo check --workspace --all-targets
cargo check --workspace --all-targets --all-features
- name: Check formatting
run: cargo fmt --all -- --check
- name: Check clippy lints
run: cargo clippy --all-features --all-targets -- --deny warnings
- name: Check documentation
run: RUSTDOCFLAGS="-D warnings" cargo doc --no-deps --all-features