-
Notifications
You must be signed in to change notification settings - Fork 34
58 lines (54 loc) · 1.41 KB
/
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
name: Lint
on:
push:
branches: [main, next]
pull_request:
types: [opened, repoened, synchronize]
jobs:
clippy:
name: Clippy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust with clippy
run: |
rustup update --no-self-update nightly
rustup +nightly component add clippy
- name: make - clippy
run: make clippy
rustfmt:
name: rustfmt
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust with rustfmt
run: |
rustup update --no-self-update nightly
rustup +nightly component add rustfmt
- name: make - format-check
run: make format-check
mkdocs:
name: build mkdocs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- uses: actions/setup-python@v5
with:
python-version: 3.x
- run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
- uses: actions/cache@v4
with:
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- run: make doc-build
rustdocs:
name: build rust documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Install Rust
run: rustup update --no-self-update
- name: make - doc
run: make doc