]> git.lizzy.rs Git - rust.git/commitdiff
Travis: Use windows-msvc target for Windows build
authorLzu Tao <taolzu@gmail.com>
Tue, 7 Jan 2020 02:52:10 +0000 (09:52 +0700)
committerLzu Tao <taolzu@gmail.com>
Tue, 7 Jan 2020 03:13:33 +0000 (10:13 +0700)
.travis.yml

index bbf084259ff01933cb5d19a8d3497281807f1bdf..f202bb0ad9fec4e8a5344b43cfd3a7e812b60b63 100644 (file)
@@ -26,7 +26,13 @@ env:
 
 before_install:
   - export CARGO_TARGET_DIR="$TRAVIS_BUILD_DIR/target"
-  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-toolchain=nightly --profile=minimal
+  - |
+    case "$TRAVIS_OS_NAME" in
+      linux ) HOST=x86_64-unknown-linux-gnu;;
+      osx ) HOST=x86_64-apple-darwin;;
+      windows ) HOST=x86_64-pc-windows-msvc;;
+    esac
+  - curl -sSL https://sh.rustup.rs | sh -s -- -y --default-host="$HOST" --default-toolchain=nightly --profile=minimal
   - export PATH="$HOME/.cargo/bin:$PATH"
 install:
   - |