File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 1
1
[alias ]
2
2
format = " fmt"
3
- format-check = " fmt -- -- check"
4
- lint = " clippy --all-targets --all-features --examples --tests -- -D warnings"
3
+ format-check = " fmt --check"
4
+ lint = " clippy --all-targets --all-features -- -D warnings"
5
5
test-cover = " llvm-cov --all-features --lcov --output-path lcov.info"
Original file line number Diff line number Diff line change @@ -32,12 +32,10 @@ jobs:
32
32
runs-on : ${{ matrix.os }}
33
33
steps :
34
34
- name : Install rust
35
- uses : actions-rs/ toolchain@v1
35
+ uses : dtolnay/rust- toolchain@master
36
36
with :
37
- profile : minimal
38
37
toolchain : ${{ matrix.rust }}
39
- target : ${{ matrix.target }}
40
- override : true
38
+ targets : ${{ matrix.target }}
41
39
- name : Checkout
42
40
uses : actions/checkout@v3
43
41
- name : Install linker
@@ -46,28 +44,19 @@ jobs:
46
44
sudo apt-get update
47
45
sudo apt-get install gcc-multilib
48
46
- name : Test
49
- uses : actions-rs/cargo@v1
50
- with :
51
- command : test
52
- args : --all-features --target ${{ matrix.target }}
47
+ run : cargo test --all-features --target ${{ matrix.target }}
48
+
53
49
lint :
54
50
name : Linting (fmt + clippy)
55
51
runs-on : ubuntu-latest
56
52
steps :
57
53
- name : Install rust
58
- uses : actions-rs/ toolchain@v1
54
+ uses : dtolnay/rust- toolchain@stable
59
55
with :
60
- profile : minimal
61
- toolchain : 1.59.0
62
- override : true
63
56
components : rustfmt, clippy
64
57
- name : Checkout
65
58
uses : actions/checkout@v3
66
59
- name : Lint check
67
- uses : actions-rs/cargo@v1
68
- with :
69
- command : lint
60
+ run : cargo lint
70
61
- name : Format check
71
- uses : actions-rs/cargo@v1
72
- with :
73
- command : format-check
62
+ run : cargo format-check
You can’t perform that action at this time.
0 commit comments