20
20
with :
21
21
persist-credentials : false
22
22
23
- - uses : actions-rs/ toolchain@v1.0.7
23
+ - uses : dtolnay/rust- toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
24
24
with :
25
- profile : minimal
26
25
toolchain : ${{ matrix.RUST }}
27
- override : true
28
26
components : rustfmt, clippy
29
27
30
28
- uses : actions/cache@v3
@@ -37,28 +35,12 @@ jobs:
37
35
target/
38
36
key : ${{ runner.os }}-${{ matrix.RUST }}-cargo-2-${{ hashFiles('**/Cargo.toml') }}
39
37
40
- -
uses :
actions-rs/[email protected]
41
- with :
42
- command : fmt
43
- args : --all -- --check
44
- -
uses :
actions-rs/[email protected]
45
- with :
46
- command : fmt
47
- args : --all --manifest-path=asn1_derive/Cargo.toml -- --check
48
-
49
- -
uses :
actions-rs/[email protected]
50
- with :
51
- command : clippy
52
- args : --all-targets -- -D warnings
53
- -
uses :
actions-rs/[email protected]
54
- with :
55
- command : clippy
56
- args : --all-targets --manifest-path=asn1_derive/Cargo.toml -- -D warnings
38
+ - run : cargo fmt --all -- --check
39
+ - run : cargo fmt --all --manifest-path=asn1_derive/Cargo.toml -- --check
57
40
58
- -
uses :
actions-rs/[email protected]
59
- with :
60
- command : clippy
61
- args : --all-targets --all-features -- -D warnings
41
+ - run : cargo clippy --all-targets -- -D warnings
42
+ - run : cargo clippy --all-targets --manifest-path=asn1_derive/Cargo.toml -- -D warnings
43
+ - run : cargo clippy --all-targets --all-features -- -D warnings
62
44
63
45
ci :
64
46
runs-on : ubuntu-latest
89
71
with :
90
72
persist-credentials : false
91
73
92
- - uses : actions-rs/ toolchain@v1.0.7
74
+ - uses : dtolnay/rust- toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
93
75
with :
94
- profile : minimal
95
76
toolchain : ${{ matrix.RUST.VERSION }}
96
- override : true
97
- components : rustfmt, clippy
98
77
99
78
- uses : actions/cache@v3
100
79
with :
@@ -106,16 +85,10 @@ jobs:
106
85
target/
107
86
key : ${{ runner.os }}-${{ matrix.RUST.VERSION }}-cargo-2-${{ hashFiles('**/Cargo.toml') }}
108
87
109
- -
uses :
actions-rs/[email protected]
110
- with :
111
- command : test
112
- args : ${{ matrix.RUST.FLAGS }}
88
+ - run : cargo test ${{ matrix.RUST.FLAGS }}
113
89
if : " ${{ !matrix.RUST.SKIP_TESTS }}"
114
90
115
- -
uses :
actions-rs/[email protected]
116
- with :
117
- command : check
118
- args : ${{ matrix.RUST.FLAGS }}
91
+ - run : cargo check ${{ matrix.RUST.FLAGS }}
119
92
120
93
fuzz :
121
94
runs-on : ubuntu-latest
@@ -129,11 +102,9 @@ jobs:
129
102
with :
130
103
persist-credentials : false
131
104
132
- - uses : actions-rs/ toolchain@v1.0.7
105
+ - uses : dtolnay/rust- toolchain@1ce4a7352a1efe5dede2e52c75512b34256e4f44
133
106
with :
134
- profile : minimal
135
107
toolchain : ${{ matrix.RUST }}
136
- override : true
137
108
138
109
- uses : actions/cache@v3
139
110
id : cargo-cache
@@ -146,20 +117,11 @@ jobs:
146
117
target/
147
118
key : ${{ runner.os }}-cargo-3-${{ hashFiles('**/Cargo.toml') }}
148
119
149
- -
uses :
actions-rs/[email protected]
150
- with :
151
- crate : cargo-fuzz
152
- version : latest
120
+ - run : cargo install cargo-fuzz
153
121
if : steps.cargo-cache.outputs.cache-hit != 'true'
154
122
155
- -
uses :
actions-rs/[email protected]
156
- with :
157
- command : fuzz
158
- args : run --all-features fuzz_asn1_parse -- -max_total_time=30
123
+ - run : cargo fuzz run --all-features fuzz_asn1_parse -- -max_total_time=30
159
124
160
125
# On main we fuzz for 30 minutes, but only 30 seconds on PRs.
161
- -
uses :
actions-rs/[email protected]
162
- with :
163
- command : fuzz
164
- args : run --all-features fuzz_asn1_parse -- -max_total_time=1800
126
+ - run : cargo fuzz run --all-features fuzz_asn1_parse -- -max_total_time=1800
165
127
if : github.event_name == 'push' && github.ref == 'refs/heads/main'
0 commit comments