summaryrefslogtreecommitdiff
path: root/ci
diff options
context:
space:
mode:
authorYuki Okushi <yuki.okushi@huawei.com>2021-10-13 10:14:34 +0900
committerYuki Okushi <yuki.okushi@huawei.com>2021-10-13 11:45:56 +0900
commitfaeb85f44c673f80bd30f5cf243529db41d84f2a (patch)
tree8893c79ab95e97c6ba4c581e146ff446570969d7 /ci
parent0b8387e89cff3500d6c936a3fcb55118e5126e2d (diff)
downloadrust-libc-faeb85f44c673f80bd30f5cf243529db41d84f2a.tar.gz
Run MSRV check on Windows CI
Diffstat (limited to 'ci')
-rw-r--r--ci/build.sh18
1 files changed, 17 insertions, 1 deletions
diff --git a/ci/build.sh b/ci/build.sh
index 92103b57c9..21c08fbeb3 100644
--- a/ci/build.sh
+++ b/ci/build.sh
@@ -161,6 +161,13 @@ RUST_NIGHTLY_APPLE_TARGETS="\
aarch64-apple-darwin \
"
+# Must start with `x86_64-pc-windows-msvc` first.
+RUST_NIGHTLY_WINDOWS_TARGETS="\
+x86_64-pc-windows-msvc \
+x86_64-pc-windows-gnu \
+i686-pc-windows-msvc \
+"
+
# The targets are listed here alphabetically
TARGETS=""
case "${OS}" in
@@ -190,13 +197,22 @@ case "${OS}" in
fi
;;
+ windows*)
+ TARGETS=${RUST_NIGHTLY_WINDOWS_TARGETS}
+
+ ;;
*)
;;
esac
for TARGET in $TARGETS; do
if echo "$TARGET"|grep -q "$FILTER"; then
- test_target build "$TARGET"
+ if [ "${OS}" = "windows" ]; then
+ TARGET="$TARGET" sh ./ci/install-rust.sh
+ test_target build "$TARGET"
+ else
+ test_target build "$TARGET"
+ fi
fi
done