File tree Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Expand file tree Collapse file tree 2 files changed +26
-4
lines changed Original file line number Diff line number Diff line change @@ -118,6 +118,24 @@ jobs:
118
118
TARGET : i686-apple-darwin
119
119
NO_DOCKER : 1
120
120
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
+
121
139
- job : StyleAndDocs
122
140
pool :
123
141
vmImage : ubuntu-16.04
Original file line number Diff line number Diff line change @@ -15,10 +15,12 @@ steps:
15
15
displayName: Install rust (unix)
16
16
condition: ne( variables['Agent.OS'], 'Windows_NT' )
17
17
- script : |
18
+ @echo on
18
19
if not defined TOOLCHAIN set TOOLCHAIN=nightly
20
+ echo %TOOLCHAIN%
19
21
curl -sSf -o rustup-init.exe https://win.rustup.rs
20
22
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"
22
24
displayName: Install rust (windows)
23
25
condition: eq( variables['Agent.OS'], 'Windows_NT' )
24
26
- script : |
@@ -28,10 +30,12 @@ steps:
28
30
fi
29
31
condition: ne( variables['Agent.OS'], 'Windows_NT' )
30
32
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%
32
36
condition: eq( variables['Agent.OS'], 'Windows_NT' )
33
37
displayName: Install target (windows)
34
- - script : |
38
+ - bash : |
35
39
set -ex
36
40
rustc -Vv
37
41
cargo -V
41
45
which cargo
42
46
which rustup
43
47
displayName: Query rust and cargo versions
44
- - script : |
48
+ - bash : |
45
49
set -ex
46
50
cargo generate-lockfile
47
51
displayName: Generate lockfiles
You can’t perform that action at this time.
0 commit comments