Skip to content

Commit 7238729

Browse files
committed
Fix scripts for MSVC
1 parent a1085b1 commit 7238729

File tree

2 files changed

+88
-1
lines changed

2 files changed

+88
-1
lines changed

azure-pipelines.yml

Lines changed: 87 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,87 @@
22
# matching the patterns below.
33
# See https://docs.microsoft.com/en-us/azure/devops/pipelines/build/triggers
44
trigger:
5-
- urgh
5+
- master
66
- ci-*
77

88
jobs:
9+
- job: min_linux
10+
pool:
11+
vmImage: ubuntu-16.04
12+
displayName: Minimum Rust (Linux)
13+
variables:
14+
TOOLCHAIN: 1.16.0
15+
steps:
16+
- template: ci/azure-install-rust.yml
17+
- script: cargo build
18+
19+
- job: min_Windows
20+
pool:
21+
vmImage: vs2017-win2016
22+
displayName: Minimum Rust (Windows)
23+
variables:
24+
TOOLCHAIN: 1.16.0
25+
steps:
26+
- template: ci/azure-install-rust.yml
27+
- script: cargo build
28+
29+
- job: Linux
30+
pool:
31+
vmImage: ubuntu-16.04
32+
steps:
33+
- template: ci/azure-steps.yml
34+
strategy:
35+
matrix:
36+
x86_64:
37+
TARGET: x86_64-unknown-linux-gnu
38+
i686:
39+
TARGET: i686-unknown-linux-gnu
40+
x86_64-beta:
41+
TARGET: x86_64-unknown-linux-gnu
42+
TOOLCHAIN: beta
43+
x86_64-nightly:
44+
TARGET: x86_64-unknown-linux-gnu
45+
TOOLCHAIN: nightly
46+
47+
- job: macOS
48+
pool:
49+
vmImage: macos-10.13
50+
steps:
51+
- template: ci/azure-steps.yml
52+
strategy:
53+
matrix:
54+
x86_64:
55+
TARGET: x86_64-apple-darwin
56+
aarch64-ios:
57+
TARGET: aarch64-apple-ios
58+
NO_RUN: --no-run
59+
60+
- job: Windows_vs2019
61+
pool:
62+
vmImage: windows-2019
63+
steps:
64+
- template: ci/azure-steps.yml
65+
strategy:
66+
matrix:
67+
x86_64-msvc:
68+
TARGET: x86_64-pc-windows-msvc
69+
70+
- job: Windows_vs2017
71+
pool:
72+
vmImage: vs2017-win2016
73+
steps:
74+
- template: ci/azure-steps.yml
75+
strategy:
76+
matrix:
77+
x86_64-msvc:
78+
TARGET: x86_64-pc-windows-msvc
79+
i686-msvc:
80+
TARGET: i686-pc-windows-msvc
81+
x86_64-gnu:
82+
TARGET: x86_64-pc-windows-gnu
83+
i686-gnu:
84+
TARGET: i686-pc-windows-gnu
85+
986
- job: Windows_vs2015
1087
pool:
1188
vmImage: vs2015-win2012r2
@@ -17,3 +94,12 @@ jobs:
1794
TARGET: x86_64-pc-windows-msvc
1895
i686-msvc:
1996
TARGET: i686-pc-windows-msvc
97+
98+
- job: docs
99+
steps:
100+
- template: ci/azure-install-rust.yml
101+
- script: cargo doc --no-deps --all-features
102+
- script: curl -LsSf https://git.io/fhJ8n | rustc - && (cd target/doc && ../../rust_out)
103+
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
104+
env:
105+
GITHUB_DEPLOY_KEY: $(GITHUB_DEPLOY_KEY)

ci/azure-install-rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ steps:
2525
} else {
2626
curl.exe -sSf -o rustup-init.exe https://win.rustup.rs
2727
./rustup-init.exe -y --default-toolchain $env:TOOLCHAIN
28+
Write-Host "##vso[task.prependpath]${env:USERPROFILE}/.cargo/bin"
2829
}
2930
displayName: Install rust (windows)
3031
condition: eq( variables['Agent.OS'], 'Windows_NT' )

0 commit comments

Comments
 (0)