Skip to content

Commit a771cba

Browse files
authored
Merge pull request #279 from alexcrichton/configure-azure-pipelines
Configure Azure Pipelines
2 parents 19a2b4f + 17b8ea3 commit a771cba

File tree

23 files changed

+116
-62
lines changed

23 files changed

+116
-62
lines changed

azure-pipelines.yml

Lines changed: 51 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
trigger:
22
- master
3-
pr:
4-
- master
3+
54
jobs:
65
- job: Linux
76
pool:
@@ -10,8 +9,47 @@ jobs:
109
- template: ci/azure-steps.yml
1110
strategy:
1211
matrix:
13-
aarch64-unknown-linux-gnu:
12+
aarch64:
1413
TARGET: aarch64-unknown-linux-gnu
14+
arm:
15+
TARGET: arm-unknown-linux-gnueabi
16+
armhf:
17+
TARGET: arm-unknown-linux-gnueabihf
18+
i586:
19+
TARGET: i586-unknown-linux-gnu
20+
i686:
21+
TARGET: i686-unknown-linux-gnu
22+
mips:
23+
TARGET: mips-unknown-linux-gnu
24+
mips64:
25+
TARGET: mips64-unknown-linux-gnuabi64
26+
mips64el:
27+
TARGET: mips64el-unknown-linux-gnuabi64
28+
mipsel:
29+
TARGET: mipsel-unknown-linux-gnu
30+
powerpc:
31+
TARGET: powerpc-unknown-linux-gnu
32+
powerpc64:
33+
TARGET: powerpc64-unknown-linux-gnu
34+
powerpc64le:
35+
TARGET: powerpc64le-unknown-linux-gnu
36+
# thumbv6m:
37+
# TARGET: thumbv6m-linux-eabi
38+
# XARGO: 1
39+
# thumbv7em:
40+
# TARGET: thumbv7em-linux-eabi
41+
# XARGO: 1
42+
# thumbv7emhf:
43+
# TARGET: thumbv7em-linux-eabihf
44+
# XARGO: 1
45+
# thumbv7m:
46+
# TARGET: thumbv7m-linux-eabi
47+
# XARGO: 1
48+
wasm32:
49+
TARGET: wasm32-unknown-unknown
50+
ONLY_BUILD: 1
51+
x86_64:
52+
TARGET: x86_64-unknown-linux-gnu
1553

1654
- job: macOS
1755
pool:
@@ -20,8 +58,10 @@ jobs:
2058
- template: ci/azure-steps.yml
2159
strategy:
2260
matrix:
23-
x86_64-apple-darwin:
61+
x86_64:
2462
TARGET: x86_64-apple-darwin
63+
i686:
64+
TARGET: i686-apple-darwin
2565

2666
- job: Windows
2767
pool:
@@ -30,5 +70,11 @@ jobs:
3070
- template: ci/azure-steps.yml
3171
strategy:
3272
matrix:
33-
i686-pc-windows-msvc:
73+
i686-msvc:
3474
TARGET: i686-pc-windows-msvc
75+
x86_64-msvc:
76+
TARGET: x86_64-pc-windows-msvc
77+
i686-gnu:
78+
TARGET: i686-pc-windows-gnu
79+
x86_64-gnu:
80+
TARGET: x86_64-pc-windows-gnu

ci/azure-install-rust.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ steps:
1313
1414
- script: |
1515
curl -sSf -o rustup-init.exe https://win.rustup.rs
16-
rustup-init.exe -y --default-toolchain %TOOLCHAIN%
16+
rustup-init.exe -y --default-toolchain %TOOLCHAIN%-%TARGET%
1717
echo ##vso[task.prependpath]%USERPROFILE%\.cargo\bin
1818
displayName: Install rust
1919
condition: eq( variables['Agent.OS'], 'Windows_NT' )

ci/azure-steps.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,26 @@
11
steps:
22
- checkout: self
33
submodules: true
4+
45
- template: azure-install-rust.yml
56

7+
- script: rustup component add rust-src
8+
displayName: Install Rust sources
9+
condition: eq( variables['XARGO'], '1' )
10+
11+
- bash: rustup target add $TARGET
12+
displayName: Install Rust target
13+
condition: ne( variables['XARGO'], '1' )
14+
615
- bash: ./ci/run.sh $TARGET
716
condition: ne( variables['Agent.OS'], 'Linux' )
817
displayName: Run test script
918

10-
- bash: ./ci/run-docker.sh $TARGET
19+
- bash: |
20+
if [ "$ONLY_BUILD" = "1" ]; then
21+
cargo build --target $TARGET
22+
else
23+
cargo generate-lockfile && ./ci/run-docker.sh $TARGET
24+
fi
1125
condition: eq( variables['Agent.OS'], 'Linux' )
1226
displayName: Run docker test script

ci/docker/aarch64-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc libc6-dev ca-certificates \

ci/docker/arm-unknown-linux-gnueabi/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc libc6-dev ca-certificates \

ci/docker/arm-unknown-linux-gnueabihf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc libc6-dev ca-certificates \

ci/docker/armv7-unknown-linux-gnueabihf/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc libc6-dev ca-certificates \
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc-multilib libc6-dev ca-certificates
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22
RUN apt-get update && \
33
apt-get install -y --no-install-recommends \
44
gcc-multilib libc6-dev ca-certificates

ci/docker/mips-unknown-linux-gnu/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM ubuntu:16.04
1+
FROM ubuntu:18.04
22

33
RUN apt-get update && \
44
apt-get install -y --no-install-recommends \

0 commit comments

Comments
 (0)