forked from bojand/infer
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (41 loc) · 1.09 KB
/
build.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
name: build
on:
push:
branches:
- master
paths:
- 'Cargo*'
- 'src/**'
- 'tests/**'
- 'testdata/**'
pull_request:
branches:
- master
paths:
- 'Cargo*'
- 'src/**'
- 'tests/**'
- 'testdata/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Install rustfmt
run: rustup component add rustfmt
- name: Install clippy
run: rustup component add clippy
- name: Check format
run: cargo fmt --all -- --check
- name: Lint (all features)
run: cargo clippy --all-targets --all-features --examples -- -D clippy::all
- name: Lint (no_std)
run: cargo clippy --all-targets --no-default-features --features alloc -- -D clippy::all
- name: Lint (no_alloc)
run: cargo clippy --all-targets --no-default-features -- -D clippy::all
- name: Test (default)
run: cargo test --verbose
- name: Test (no_std)
run: cargo test --no-default-features --features alloc --verbose
- name: Test (no_alloc)
run: cargo test --no-default-features --verbose