Skip to content

Commit 93d80ba

Browse files
committed
Update CI
1 parent b799541 commit 93d80ba

File tree

1 file changed

+47
-7
lines changed

1 file changed

+47
-7
lines changed

.github/workflows/avi.yml

Lines changed: 47 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,56 @@ name: avi
33
on: [push, pull_request]
44

55
jobs:
6-
build:
6+
7+
clippy-rustfmt:
78

89
runs-on: ubuntu-latest
910

1011
steps:
11-
- uses: actions/checkout@v1
12-
- name: Print rust version
13-
run: rustc -vV
12+
- uses: actions/checkout@v2
13+
14+
- name: Install stable
15+
uses: actions-rs/toolchain@v1
16+
with:
17+
profile: minimal
18+
toolchain: stable
19+
override: true
20+
components: clippy, rustfmt
21+
22+
- name: Run rustfmt
23+
uses: actions-rs/cargo@v1
24+
with:
25+
command: fmt
26+
args: -- --check --verbose
27+
28+
- name: Lint
29+
uses: actions-rs/clippy-check@v1
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
args: --all-features --tests --benches
33+
34+
build:
35+
36+
strategy:
37+
matrix:
38+
platform: [ubuntu-latest, windows-latest]
39+
40+
runs-on: ${{ matrix.platform }}
41+
42+
steps:
43+
- uses: actions/checkout@v2
44+
45+
- name: Install stable
46+
uses: actions-rs/toolchain@v1
47+
with:
48+
profile: minimal
49+
toolchain: stable
50+
override: true
51+
1452
- name: Run tests
1553
run: |
16-
cargo test --all-features --verbose
17-
cargo bench --all-features --verbose
18-
cargo doc --all-features --verbose
54+
cargo test --all-targets --all-features
55+
56+
- name: Generate docs
57+
run: |
58+
cargo doc --all-features --no-deps

0 commit comments

Comments
 (0)