-
-
Notifications
You must be signed in to change notification settings - Fork 7
42 lines (35 loc) · 878 Bytes
/
lint.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: Lint
on:
push:
branches: ["main"]
pull_request:
concurrency:
group: ${{ github.head_ref || github.run_id }}
cancel-in-progress: true
env:
CARGO_TERM_COLOR: always
jobs:
clippy-rustdoc:
name: Clippy & Rustdoc
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
target:
- x86_64-unknown-linux-gnu
- wasm32-unknown-unknown
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install Rust
run: rustup target add ${{ matrix.target }}
- name: Run Clippy
run:
cargo clippy --all-targets --target ${{ matrix.target }} -- -D
warnings
- name: Run Rustdoc
env:
RUSTDOCFLAGS: -D warnings
run:
cargo doc --no-deps --document-private-items --examples --target ${{
matrix.target }}