File tree Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Expand file tree Collapse file tree 2 files changed +43
-1
lines changed Original file line number Diff line number Diff line change @@ -226,6 +226,30 @@ jobs:
226
226
- name : Execute build.sh
227
227
run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} sh ./ci/build.sh
228
228
229
+ build_channels_windows :
230
+ name : Build Channels Windows
231
+ runs-on : windows-2019
232
+ env :
233
+ OS : windows
234
+ strategy :
235
+ fail-fast : true
236
+ matrix :
237
+ toolchain : [
238
+ 1.19.0,
239
+ 1.24.0,
240
+ 1.25.0,
241
+ 1.30.0,
242
+ stable,
243
+ ]
244
+ steps :
245
+ - uses : actions/checkout@v2
246
+ - name : Self-update rustup
247
+ run : rustup self update
248
+ shell : bash
249
+ - name : Execute build.sh
250
+ run : LIBC_CI=1 TOOLCHAIN=${{ matrix.toolchain }} WIN_TARGET=${{ matrix.target }} sh ./ci/build.sh
251
+ shell : bash
252
+
229
253
semver_linux :
230
254
name : Semver Linux
231
255
runs-on : ubuntu-20.04
@@ -283,6 +307,7 @@ jobs:
283
307
docker_switch,
284
308
build_channels_linux,
285
309
build_channels_macos,
310
+ build_channels_windows,
286
311
docs,
287
312
]
288
313
@@ -303,6 +328,7 @@ jobs:
303
328
docker_switch,
304
329
build_channels_linux,
305
330
build_channels_macos,
331
+ build_channels_windows,
306
332
docs,
307
333
]
308
334
Original file line number Diff line number Diff line change @@ -161,6 +161,13 @@ RUST_NIGHTLY_APPLE_TARGETS="\
161
161
aarch64-apple-darwin \
162
162
"
163
163
164
+ # Must start with `x86_64-pc-windows-msvc` first.
165
+ RUST_NIGHTLY_WINDOWS_TARGETS=" \
166
+ x86_64-pc-windows-msvc \
167
+ x86_64-pc-windows-gnu \
168
+ i686-pc-windows-msvc \
169
+ "
170
+
164
171
# The targets are listed here alphabetically
165
172
TARGETS=" "
166
173
case " ${OS} " in
@@ -189,14 +196,23 @@ case "${OS}" in
189
196
TARGETS=" ${TARGETS} ${RUST_NIGHTLY_APPLE_TARGETS} "
190
197
fi
191
198
199
+ ;;
200
+ windows* )
201
+ TARGETS=${RUST_NIGHTLY_WINDOWS_TARGETS}
202
+
192
203
;;
193
204
* )
194
205
;;
195
206
esac
196
207
197
208
for TARGET in $TARGETS ; do
198
209
if echo " $TARGET " | grep -q " $FILTER " ; then
199
- test_target build " $TARGET "
210
+ if [ " ${OS} " = " windows" ]; then
211
+ TARGET=" $TARGET " sh ./ci/install-rust.sh
212
+ test_target build " $TARGET "
213
+ else
214
+ test_target build " $TARGET "
215
+ fi
200
216
fi
201
217
done
202
218
You can’t perform that action at this time.
0 commit comments