Browse Source

appveyor: make the host x86_64 when testing the i686 target

Jorge Aparicio 8 năm trước cách đây
mục cha
commit
aa553fe113
1 tập tin đã thay đổi với 5 bổ sung1 xóa
  1. 5 1
      appveyor.yml

+ 5 - 1
appveyor.yml

@@ -6,8 +6,12 @@ environment:
 install:
   - git submodule update --init
   - curl -sSf -o rustup-init.exe https://win.rustup.rs
-  - rustup-init.exe --default-host %TARGET% --default-toolchain nightly -y
+  - rustup-init.exe --default-host x86_64-pc-windows-msvc --default-toolchain nightly -y
   - set PATH=%PATH%;C:\Users\appveyor\.cargo\bin
+  - ps: >-
+      If ($Env:TARGET -eq 'i686-pc-windows-msvc') {
+        rustup target add $Env:TARGET
+      }
   - rustc -Vv
   - cargo -V