File tree Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Expand file tree Collapse file tree 1 file changed +5
-21
lines changed Original file line number Diff line number Diff line change 79
79
- name : install command line dependencies
80
80
run : brew install make gnupg
81
81
- uses : actions/checkout@v4
82
- - uses : actions-rs/toolchain@v1
83
- with :
84
- profile : minimal
85
- toolchain : stable
86
- override : true
82
+ - uses : dtolnay/rust-toolchain@stable
87
83
- name : set up cargo cache
88
84
uses : actions/cache@v4
89
85
continue-on-error : false
@@ -113,26 +109,17 @@ jobs:
113
109
- name : disable ipv6 for gpg
114
110
run : echo "disable-ipv6" > .cache/.gnupg/dirmngr.conf
115
111
- name : build
116
- uses : actions-rs/cargo@v1
117
- with :
118
- command : build
119
- args : --verbose
112
+ run : cargo build --verbose
120
113
- name : run tests
121
- uses : actions-rs/cargo@v1
122
- with :
123
- command : test
124
- args : --verbose
114
+ run : cargo test --verbose
125
115
126
116
fmt :
127
117
name : Rustfmt
128
118
runs-on : ubuntu-latest
129
119
steps :
130
120
- uses : actions/checkout@v4
131
- - uses : actions-rs/ toolchain@v1
121
+ - uses : dtolnay/rust- toolchain@stable
132
122
with :
133
- profile : minimal
134
- toolchain : stable
135
- override : true
136
123
components : rustfmt
137
124
- name : rustfmt version
138
125
run : rustfmt --version
@@ -168,11 +155,8 @@ jobs:
168
155
.cache/*.tar.sig
169
156
key : ${{ runner.os }}-deps-${{ hashFiles('**/nginx-sys/build.rs') }}
170
157
restore-keys : ${{ runner.os }}-deps-
171
- - uses : actions-rs/ toolchain@v1
158
+ - uses : dtolnay/rust- toolchain@stable
172
159
with :
173
- profile : minimal
174
- toolchain : stable
175
- override : true
176
160
components : rustfmt, clippy
177
161
- name : run clippy
178
162
run : cargo clippy -- -D warnings
You can’t perform that action at this time.
0 commit comments