@@ -10,26 +10,18 @@ jobs:
10
10
env :
11
11
TOOLCHAIN : nightly
12
12
- bash : rustup target add $TARGET
13
- displayName : " Install rust cross target"
14
- - bash : |
15
- set -e
16
- mkdir cross
17
- curl -L https://github.com/rust-embedded/cross/releases/download/v0.1.14/cross-v0.1.14-x86_64-unknown-linux-musl.tar.gz | tar xzf - -C $HOME/.cargo/bin
18
- displayName: "Install cross"
19
- - bash : cross test --lib --features checked --target $TARGET --release
20
- displayName : " Run lib tests"
21
- - bash : cross test --tests --features checked --target $TARGET --release
22
- displayName : " Run integration tests"
13
+ - template : ci/azure-install-rust.yml
14
+ - bash : cargo generate-lockfile && ./ci/run-docker.sh $TARGET
23
15
strategy :
24
16
matrix :
25
17
aarch64 :
26
18
TARGET : aarch64-unknown-linux-gnu
27
- armhv :
19
+ arm :
20
+ TARGET : arm-unknown-linux-gnueabi
21
+ armhf :
28
22
TARGET : arm-unknown-linux-gnueabihf
29
23
armv7 :
30
24
TARGET : armv7-unknown-linux-gnueabihf
31
- i586 :
32
- TARGET : i586-unknown-linux-gnu
33
25
i686 :
34
26
TARGET : i686-unknown-linux-gnu
35
27
mips :
@@ -47,97 +39,31 @@ jobs:
47
39
x86_64 :
48
40
TARGET : x86_64-unknown-linux-gnu
49
41
50
- # - job: Linux
51
- # pool:
52
- # vmImage: ubuntu-16.04
53
- # steps:
54
- # - template: ci/azure-test-all.yml
55
- # strategy:
56
- # matrix:
57
- # stable:
58
- # TOOLCHAIN: stable
59
- # beta:
60
- # TOOLCHAIN: beta
61
- # nightly:
62
- # TOOLCHAIN: nightly
63
- #
64
- # - job: macOS
65
- # pool:
66
- # vmImage: macos-10.13
67
- # steps:
68
- # - template: ci/azure-test-all.yml
69
- # strategy:
70
- # matrix:
71
- # x86_64:
72
- # TARGET: x86_64-apple-darwin
73
- #
74
- # - job: iOS
75
- # pool:
76
- # vmImage: macos-10.13
77
- # steps:
78
- # - checkout: self
79
- # submodules: true
80
- # - template: ci/azure-install-rust.yml
81
- # - script: rustup target add $TARGET
82
- # displayName: "Install rust cross target"
83
- # - bash: |
84
- # set -e
85
- # export SDK_PATH=`xcrun --show-sdk-path --sdk $SDK`
86
- # export RUSTFLAGS="-C link-arg=-isysroot -C link-arg=$SDK_PATH"
87
- # cargo test --no-run --target $TARGET
88
- # displayName: "Build for iOS"
89
- # strategy:
90
- # matrix:
91
- # aarch64:
92
- # TARGET: aarch64-apple-ios
93
- # SDK: iphoneos
94
- # armv7:
95
- # TARGET: armv7-apple-ios
96
- # SDK: iphoneos
97
- # armv7s:
98
- # TARGET: armv7s-apple-ios
99
- # SDK: iphoneos
100
- # i386:
101
- # TARGET: i386-apple-ios
102
- # SDK: iphonesimulator
103
- # x86_64:
104
- # TARGET: x86_64-apple-ios
105
- # SDK: iphonesimulator
106
- #
107
- # - job: wasm
108
- # pool:
109
- # vmImage: ubuntu-16.04
110
- # steps:
111
- # - checkout: self
112
- # submodules: true
113
- # - template: ci/azure-install-rust.yml
114
- # - script: rustup target add wasm32-unknown-unknown
115
- # displayName: "Install rust cross target"
116
- # - script: cargo build --target wasm32-unknown-unknown
117
- # displayName: "Build for wasm"
118
- #
119
- # - job: Windows
120
- # pool:
121
- # vmImage: vs2017-win2016
122
- # steps:
123
- # - template: ci/azure-test-all.yml
124
- # strategy:
125
- # matrix:
126
- # x86_64-msvc:
127
- # TARGET: x86_64-pc-windows-msvc
128
- # i686-msvc:
129
- # TARGET: i686-pc-windows-msvc
130
- # x86_64-gnu:
131
- # TARGET: x86_64-pc-windows-gnu
132
- # i686-gnu:
133
- # TARGET: i686-pc-windows-gnu
134
- #
135
- # - job: Windows_arm64
136
- # pool:
137
- # vmImage: windows-2019
138
- # steps:
139
- # - template: ci/azure-install-rust.yml
140
- # - script: rustup target add aarch64-pc-windows-msvc
141
- # displayName: "Install rust cross target"
142
- # - script: cargo test --no-run --target aarch64-pc-windows-msvc
143
- # displayName: "Build for arm64"
42
+ - job : wasm
43
+ pool :
44
+ vmImage : ubuntu-16.04
45
+ steps :
46
+ - template : ci/azure-install-rust.yml
47
+ env :
48
+ TOOLCHAIN : nightly
49
+ - script : rustup target add wasm32-unknown-unknown
50
+ displayName : " Install rust wasm target"
51
+ - script : cargo build --target wasm32-unknown-unknown
52
+ displayName : " Build for wasm"
53
+ - script : cargo build --target wasm32-unknown-unknown --no-default-features
54
+ displayName : " Build for wasm (no default features)"
55
+
56
+ - job : rustfmt
57
+ pool :
58
+ vmImage : ubuntu-16.04
59
+ steps :
60
+ - template : ci/azure-install-rust.yml
61
+ - bash : rustup component add rustfmt
62
+ - bash : cargo fmt --all -- --check
63
+
64
+ - job : compiler_builtins_works
65
+ pool :
66
+ vmImage : ubuntu-16.04
67
+ steps :
68
+ - template : ci/azure-install-rust.yml
69
+ - bash : cargo build -p cb
0 commit comments