-
Notifications
You must be signed in to change notification settings - Fork 16
60 lines (53 loc) · 1.25 KB
/
check_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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
on:
pull_request:
push:
branches:
- oss
name: Check and Lint and no-std
jobs:
build-no-std:
name: Build no-std
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
working-directory: ./ensure_no_std
run: rustup show
- name: Build no-std
run: cargo build
fmt:
name: Rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
run: rustup show
- name: Check format
run: cargo fmt --check --all
clippy-all-features:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
run: rustup show
- name: Clippy all features
run: cargo clippy --all-features
clippy-default-features:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
run: rustup show
- name: Clippy default features
run: cargo clippy
clippy-no-std:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install rust
run: rustup show
- name: Clippy no-std
run: cargo clippy --no-default-features