-
Notifications
You must be signed in to change notification settings - Fork 23
35 lines (35 loc) · 1.06 KB
/
lint.yaml
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
name: Lint
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: warp-ubuntu-latest-x64-4x
steps:
- uses: actions/checkout@v1
- run: rustup update
- uses: Swatinem/rust-cache@v2
with:
workspaces: |
.
bindings_ffi
- uses: actions-rs/clippy-check@v1
name: Lint main workspace
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: workspace
args: --all-features --all-targets --no-deps
- uses: actions-rs/clippy-check@v1
name: Lint ffi
with:
token: ${{ secrets.GITHUB_TOKEN }}
name: ffi
args: --all-features --all-targets --no-deps --manifest-path bindings_ffi/Cargo.toml
- name: Format
run: cargo fmt --check
- name: Lint and fail on warnings
run: cargo clippy --no-deps --all-targets --all-features -- -Dwarnings
- name: Lint and fail on warnings
run: cargo clippy --all-features --all-targets --no-deps --manifest-path bindings_ffi/Cargo.toml -- -Dwarnings