Skip to content

Commit 7507f5d

Browse files
committed
Add windows targets
1 parent 1e12131 commit 7507f5d

File tree

2 files changed

+25
-0
lines changed

2 files changed

+25
-0
lines changed

azure-pipelines.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,28 @@ jobs:
8888
i686-apple-darwin:
8989
TARGET: i686-apple-darwin
9090

91+
- job: Windows
92+
pool:
93+
vmImage: vs2017-win2016
94+
steps:
95+
- template: ci/azure-install-rust.yml
96+
- bash: sh ./ci/run.sh $TARGET
97+
displayName: Execute run.sh
98+
strategy:
99+
matrix:
100+
x86_64-pc-windows-gnu:
101+
TARGET: x86_64-pc-windows-gnu
102+
MSYS_BITS: 64
103+
ARCH: x86_64
104+
x86_64-pc-windows-msvc:
105+
TARGET: x86_64-pc-windows-msvc
106+
i686-pc-windows-gnu:
107+
TARGET: i686-pc-windows-gnu
108+
MSYS_BITS: 32
109+
ARCH: i686
110+
i686-pc-windows-msvc:
111+
TARGET: i686-pc-windows-msvc
112+
91113
- job: StyleAndDocs
92114
pool:
93115
vmImage: ubuntu-16.04

ci/azure-install-rust.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ steps:
3131
- script: if defined TARGET rustup target add %TARGET%
3232
condition: eq( variables['Agent.OS'], 'Windows_NT' )
3333
displayName: Install target (windows)
34+
- 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"
35+
condition: eq( variables['Agent.OS'], 'Windows_NT' )
36+
displayName: Fix MinGW (windows)
3437
- script: |
3538
set -ex
3639
rustc -Vv

0 commit comments

Comments
 (0)