Add windows targets
This commit is contained in:
parent
1e121314f6
commit
7507f5d1e0
@ -88,6 +88,28 @@ jobs:
|
||||
i686-apple-darwin:
|
||||
TARGET: i686-apple-darwin
|
||||
|
||||
- job: Windows
|
||||
pool:
|
||||
vmImage: vs2017-win2016
|
||||
steps:
|
||||
- template: ci/azure-install-rust.yml
|
||||
- bash: sh ./ci/run.sh $TARGET
|
||||
displayName: Execute run.sh
|
||||
strategy:
|
||||
matrix:
|
||||
x86_64-pc-windows-gnu:
|
||||
TARGET: x86_64-pc-windows-gnu
|
||||
MSYS_BITS: 64
|
||||
ARCH: x86_64
|
||||
x86_64-pc-windows-msvc:
|
||||
TARGET: x86_64-pc-windows-msvc
|
||||
i686-pc-windows-gnu:
|
||||
TARGET: i686-pc-windows-gnu
|
||||
MSYS_BITS: 32
|
||||
ARCH: i686
|
||||
i686-pc-windows-msvc:
|
||||
TARGET: i686-pc-windows-msvc
|
||||
|
||||
- job: StyleAndDocs
|
||||
pool:
|
||||
vmImage: ubuntu-16.04
|
||||
|
@ -31,6 +31,9 @@ steps:
|
||||
- script: if defined TARGET rustup target add %TARGET%
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
displayName: Install target (windows)
|
||||
- script: if defined MSYS_BITS for %%I in (crt2.o dllcrt2.o libmsvcrt.a) do xcopy /Y "C:\msys64\mingw%MSYS_BITS%\%ARCH%-w64-mingw32\lib\%%I" "C:\Program Files (x86)\Rust\lib\rustlib\%TARGET%\lib"
|
||||
condition: eq( variables['Agent.OS'], 'Windows_NT' )
|
||||
displayName: Fix MinGW (windows)
|
||||
- script: |
|
||||
set -ex
|
||||
rustc -Vv
|
||||
|
Loading…
Reference in New Issue
Block a user