@@ -60,33 +60,49 @@ jobs:
60
60
shell : bash
61
61
62
62
- name : " Run cargo build"
63
- run : cargo build
63
+ uses : actions-rs/cargo@v1
64
+ with :
65
+ command : build
64
66
65
67
- name : " Run cargo build for stable without instructions"
66
- run : cargo build --no-default-features
68
+ uses : actions-rs/cargo@v1
69
+ with :
70
+ command : build
71
+ args : --no-default-features
67
72
68
73
- name : " Run cargo build for stable"
69
- run : cargo build --no-default-features --features external_asm,instructions
74
+ uses : actions-rs/cargo@v1
75
+ with :
76
+ command : build
77
+ args : --no-default-features --features external_asm,instructions
70
78
if : runner.os != 'Windows'
71
79
72
80
- name : " Run cargo build for stable on musl"
73
- run : cargo build --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
81
+ uses : actions-rs/cargo@v1
82
+ with :
83
+ command : build
84
+ args : --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
74
85
if : runner.os == 'Linux'
75
86
76
87
- name : " Run cargo test"
77
- run : cargo test
88
+ uses : actions-rs/cargo@v1
89
+ with :
90
+ command : test
78
91
79
92
- name : " Run cargo test for stable"
80
- run : cargo test --no-default-features --features external_asm,instructions
93
+ uses : actions-rs/cargo@v1
94
+ with :
95
+ command : test
96
+ args : --no-default-features --features external_asm,instructions
81
97
if : runner.os != 'Windows'
82
98
83
99
- name : " Run cargo test for stable on musl"
84
- run : cargo test --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
100
+ uses : actions-rs/cargo@v1
101
+ with :
102
+ command : test
103
+ args : --target x86_64-unknown-linux-musl --no-default-features --features external_asm,instructions
85
104
if : runner.os == 'Linux'
86
105
87
- - name : ' Deny Warnings'
88
- run : cargo build --features deny-warnings
89
-
90
106
- name : " Install Rustup Targets"
91
107
run : |
92
108
rustup target add i686-unknown-linux-gnu
@@ -150,4 +166,7 @@ jobs:
150
166
steps :
151
167
- uses : actions/checkout@v1
152
168
- run : rustup toolchain install nightly --profile minimal --component clippy
153
- - run : cargo +nightly clippy -- -D warnings
169
+ - name : " Run `cargo clippy`"
170
+ uses : actions-rs/cargo@v1
171
+ with :
172
+ command : clippy
0 commit comments