Skip to content

Commit 932ec8b

Browse files
committed
Add windows jobs
1 parent 548466d commit 932ec8b

File tree

2 files changed

+26
-4
lines changed

2 files changed

+26
-4
lines changed

azure-pipelines.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,24 @@ jobs:
118118
TARGET: i686-apple-darwin
119119
NO_DOCKER: 1
120120

121+
#- job: Windows
122+
# pool:
123+
# vmImage: vs2017-win2016
124+
# steps:
125+
# - template: ci/azure-install-rust.yml
126+
# - bash: sh ./ci/run.sh $TARGET
127+
# displayName: Execute run.sh
128+
# strategy:
129+
# matrix:
130+
# x86_64-pc-windows-gnu:
131+
# TARGET: x86_64-pc-windows-gnu
132+
# NO_DOCKER: 1
133+
# TOOLCHAIN: nightly
134+
# x86_64-pc-windows-msvc:
135+
# TARGET: x86_64-pc-windows-gnu
136+
# NO_DOCKER: 1
137+
# TOOLCHAIN: nightly
138+
121139
- job: StyleAndDocs
122140
pool:
123141
vmImage: ubuntu-16.04

ci/azure-install-rust.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,12 @@ steps:
1515
displayName: Install rust (unix)
1616
condition: ne( variables['Agent.OS'], 'Windows_NT' )
1717
- script: |
18+
@echo on
1819
if not defined TOOLCHAIN set TOOLCHAIN=nightly
20+
echo %TOOLCHAIN%
1921
curl -sSf -o rustup-init.exe https://win.rustup.rs
2022
rustup-init.exe -y --default-toolchain %TOOLCHAIN%-%TARGET%
21-
echo ##vso[task.prependpath]%USERPROFILE%\.cargo\bin
23+
echo "##vso[task.setvariable variable=PATH;]%PATH%;%USERPROFILE%\.cargo\bin"
2224
displayName: Install rust (windows)
2325
condition: eq( variables['Agent.OS'], 'Windows_NT' )
2426
- script: |
@@ -28,10 +30,12 @@ steps:
2830
fi
2931
condition: ne( variables['Agent.OS'], 'Windows_NT' )
3032
displayName: Install target (unix)
31-
- script: if defined TARGET rustup target add %TARGET%
33+
- script: |
34+
@echo on
35+
if defined TARGET rustup target add %TARGET%
3236
condition: eq( variables['Agent.OS'], 'Windows_NT' )
3337
displayName: Install target (windows)
34-
- script: |
38+
- bash: |
3539
set -ex
3640
rustc -Vv
3741
cargo -V
@@ -41,7 +45,7 @@ steps:
4145
which cargo
4246
which rustup
4347
displayName: Query rust and cargo versions
44-
- script: |
48+
- bash: |
4549
set -ex
4650
cargo generate-lockfile
4751
displayName: Generate lockfiles

0 commit comments

Comments
 (0)