diff options
| author | Lzu Tao <taolzu@gmail.com> | 2020-01-07 09:52:10 +0700 |
|---|---|---|
| committer | Lzu Tao <taolzu@gmail.com> | 2020-01-07 10:13:33 +0700 |
| commit | a2b3b5a7b7d06acb2a35a0a839ae47c4fef3c7d3 (patch) | |
| tree | 23393b421076fd8dc7bf9237dbff9c3cabefdb35 | |
| parent | e8642c7a2900bed28003a98d4db8b62290ac802f (diff) | |
| download | rust-a2b3b5a7b7d06acb2a35a0a839ae47c4fef3c7d3.tar.gz rust-a2b3b5a7b7d06acb2a35a0a839ae47c4fef3c7d3.zip | |
Travis: Use windows-msvc target for Windows build
| -rw-r--r-- | .travis.yml | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/.travis.yml b/.travis.yml index bbf084259ff..f202bb0ad9f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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: - | |
