29
29
if : matrix.target.os == 'macos-latest'
30
30
run : sudo ifconfig lo0 alias 127.0.0.3
31
31
32
- - uses : actions/checkout@v2
32
+ - uses : actions/checkout@v3
33
33
34
34
# install OpenSSL on Windows
35
35
- name : Set vcpkg root
@@ -43,11 +43,10 @@ jobs:
43
43
run : vcpkg install openssl:x86-windows
44
44
45
45
- name : Install ${{ matrix.version }}
46
- uses : actions-rs/toolchain@v1
47
- with :
48
- toolchain : ${{ matrix.version }}-${{ matrix.target.triple }}
49
- profile : minimal
50
- override : true
46
+ run : |
47
+ rustup set profile minimal
48
+ rustup install ${{ matrix.version }}-${{ matrix.target.triple }}
49
+ rustup override set ${{ matrix.version }}-${{ matrix.target.triple }}
51
50
52
51
# - name: Install MSYS2
53
52
# if: matrix.target.triple == 'x86_64-pc-windows-gnu'
@@ -59,43 +58,34 @@ jobs:
59
58
# msys2 -c 'pacman --noconfirm -S base-devel pkg-config'
60
59
61
60
# - name: Generate Cargo.lock
62
- # uses: actions-rs/cargo@v1
63
- # with: { command: generate-lockfile }
61
+ # run: cargo generate-lockfile
64
62
# - name: Cache Dependencies
65
- # uses: Swatinem/rust-cache@v1 .2.0
63
+ # uses: Swatinem/rust-cache@v2 .2.0
66
64
67
65
- name : Install cargo-hack
68
- uses : actions-rs/cargo@v1
69
- with :
70
- command : install
71
- args : cargo-hack
66
+ run : cargo install cargo-hack
72
67
73
68
- name : check lib
74
69
if : >
75
70
matrix.target.os != 'ubuntu-latest'
76
71
&& matrix.target.triple != 'x86_64-pc-windows-gnu'
77
- uses : actions-rs/cargo@v1
78
- with : { command: ci-check-lib }
72
+ run : cargo ci-check-lib
79
73
- name : check lib
80
74
if : matrix.target.os == 'ubuntu-latest'
81
- uses : actions-rs/cargo@v1
82
- with : { command: ci-check-lib-linux }
75
+ run : cargo ci-check-lib-linux
83
76
- name : check lib
84
77
if : matrix.target.triple == 'x86_64-pc-windows-gnu'
85
- uses : actions-rs/cargo@v1
86
- with : { command: ci-check-min }
87
-
78
+ run : cargo ci-check-min
79
+
88
80
- name : check full
89
81
# TODO: compile OpenSSL and run tests on MinGW
90
82
if : >
91
83
matrix.target.os != 'ubuntu-latest'
92
84
&& matrix.target.triple != 'x86_64-pc-windows-gnu'
93
- uses : actions-rs/cargo@v1
94
- with : { command: ci-check }
85
+ run : cargo ci-check
95
86
- name : check all
96
87
if : matrix.target.os == 'ubuntu-latest'
97
- uses : actions-rs/cargo@v1
98
- with : { command: ci-check-linux }
88
+ run : cargo ci-check-linux
99
89
100
90
- name : tests
101
91
if : >
@@ -116,95 +106,74 @@ jobs:
116
106
name : coverage
117
107
runs-on : ubuntu-latest
118
108
steps :
119
- - uses : actions/checkout@v2
109
+ - uses : actions/checkout@v3
120
110
121
111
- name : Install Rust (nightly)
122
- uses : actions-rs/toolchain@v1
123
- with :
124
- toolchain : nightly
125
- profile : minimal
126
- override : true
112
+ run : |
113
+ rustup set profile minimal
114
+ rustup install nightly
115
+ rustup override set nightly
127
116
128
117
- name : Generate Cargo.lock
129
- uses : actions-rs/cargo@v1
130
- with : { command: generate-lockfile }
118
+ run : cargo generate-lockfile
131
119
- name : Cache Dependencies
132
- uses : Swatinem/rust-cache@v1.3 .0
133
-
120
+ uses : Swatinem/rust-cache@v2.2 .0
121
+
134
122
- name : Generate coverage file
135
123
if : github.ref == 'refs/heads/master'
136
124
run : |
137
125
cargo install cargo-tarpaulin
138
126
cargo tarpaulin --out Xml --verbose
139
127
- name : Upload to Codecov
140
128
if : github.ref == 'refs/heads/master'
141
- uses : codecov/codecov-action@v1
142
- with : { file : cobertura.xml }
129
+ uses : codecov/codecov-action@v3
130
+ with : { files : cobertura.xml }
143
131
144
132
minimal-versions :
145
133
name : minimal versions
146
134
runs-on : ubuntu-latest
147
135
steps :
148
- - uses : actions/checkout@v2
136
+ - uses : actions/checkout@v3
149
137
150
138
- name : Install Rust (nightly)
151
- uses : actions-rs/toolchain@v1
152
- with :
153
- toolchain : nightly
154
- profile : minimal
155
- override : true
139
+ run : |
140
+ rustup set profile minimal
141
+ rustup install nightly
142
+ rustup override set nightly
156
143
157
144
- name : Generate Cargo.lock
158
- uses : actions-rs/cargo@v1
159
- with : { command: generate-lockfile }
145
+ run : cargo generate-lockfile
160
146
- name : Cache Dependencies
161
- uses : Swatinem/rust-cache@v1.3 .0
147
+ uses : Swatinem/rust-cache@v2.2 .0
162
148
163
149
- name : Install cargo-minimal-versions
164
- uses : actions-rs/cargo@v1
165
- with :
166
- command : install
167
- args : cargo-minimal-versions
150
+ run : cargo install cargo-minimal-versions
168
151
169
152
- name : Install cargo-hack
170
- uses : actions-rs/cargo@v1
171
- with :
172
- command : install
173
- args : cargo-hack
153
+ run : cargo install cargo-hack
174
154
175
155
- name : Check With Minimal Versions
176
- uses : actions-rs/cargo@v1
177
- with :
178
- command : minimal-versions
179
- args : check
156
+ run : cargo minimal-versions check
180
157
181
158
nextest :
182
159
name : nextest
183
160
runs-on : ubuntu-latest
184
161
steps :
185
- - uses : actions/checkout@v2
162
+ - uses : actions/checkout@v3
186
163
187
164
- name : Install Rust
188
- uses : actions-rs/toolchain@v1
189
- with :
190
- toolchain : stable
191
- profile : minimal
192
- override : true
165
+ run : |
166
+ rustup set profile minimal
167
+ rustup install stable
168
+ rustup override set stable
193
169
194
170
- name : Generate Cargo.lock
195
- uses : actions-rs/cargo@v1
196
- with : { command: generate-lockfile }
171
+ run : cargo generate-lockfile
197
172
- name : Cache Dependencies
198
- uses : Swatinem/rust-cache@v1.3 .0
173
+ uses : Swatinem/rust-cache@v2.2 .0
199
174
200
175
- name : Install cargo-nextest
201
- uses : actions-rs/cargo@v1
202
- with :
203
- command : install
204
- args : cargo-nextest
176
+ run : cargo install cargo-nextest
205
177
206
178
- name : Test with cargo-nextest
207
- uses : actions-rs/cargo@v1
208
- with :
209
- command : nextest
210
- args : run
179
+ run : cargo nextest run
0 commit comments