-
Notifications
You must be signed in to change notification settings - Fork 2
53 lines (44 loc) · 1.15 KB
/
check_and_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
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
on: [push]
name: Check, Lint, Build
env:
CARGO_TERM_COLOR: always
jobs:
check-lint-build-stable:
name: Check, Lint, Build (stable)
runs-on: ubuntu-latest
timeout-minutes: 20
# env:
# RUSTFLAGS: -D warnings
steps:
- name: Install Protoc
uses: arduino/setup-protoc@v2
- uses: actions/checkout@v2
- name: Install latest stable toolchain
uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
components: rustfmt, clippy
override: true
target: x86_64-pc-windows-gnu
- name: Rust Cache
uses: Swatinem/[email protected]
- name: Rustfmt
uses: actions-rs/cargo@v1
with:
command: fmt
args: --all -- --check
- name: Cargo check
uses: actions-rs/cargo@v1
with:
command: check
- name: Clippy
uses: actions-rs/cargo@v1
with:
command: clippy
args: --all-targets --all-features
- name: Build
uses: actions-rs/cargo@v1
with:
command: build
args: --release