2 # Azure Pipelines "auto" branch build for Rust on Linux, macOS, and Windows.
18 - template: steps/linux.yml
22 IMAGE: x86_64-gnu-llvm-6.0
26 IMAGE: dist-x86_64-linux
29 # "alternate" deployments, these are "nightlies" but have LLVM assertions
30 # turned on, they're deployed to a different location primarily for
32 dist-x86_64-linux-alt:
33 IMAGE: dist-x86_64-linux
36 # Linux builders, remaining docker images
52 IMAGE: dist-aarch64-linux
64 IMAGE: dist-armhf-linux
68 IMAGE: dist-armv7-linux
71 dist-i586-gnu-i586-i686-musl:
72 IMAGE: dist-i586-gnu-i586-i686-musl
76 IMAGE: dist-i686-freebsd
80 IMAGE: dist-i686-linux
84 IMAGE: dist-mips-linux
88 IMAGE: dist-mips64-linux
92 IMAGE: dist-mips64el-linux
96 IMAGE: dist-mipsel-linux
100 IMAGE: dist-powerpc-linux
103 dist-powerpc64-linux:
104 IMAGE: dist-powerpc64-linux
107 dist-powerpc64le-linux:
108 IMAGE: dist-powerpc64le-linux
112 IMAGE: dist-s390x-linux
116 IMAGE: dist-x86_64-freebsd
120 IMAGE: dist-x86_64-musl
124 IMAGE: dist-x86_64-netbsd
137 x86_64-gnu-full-bootstrap:
138 IMAGE: x86_64-gnu-full-bootstrap
140 IMAGE: x86_64-gnu-aux
142 IMAGE: x86_64-gnu-tools
143 # FIXME if: branch = auto OR (type = pull_request AND commit_message =~ /(?i:^update.*\b(rls|rustfmt|clippy|miri|cargo)\b)/)
145 IMAGE: x86_64-gnu-debug
147 IMAGE: x86_64-gnu-nopt
148 x86_64-gnu-distcheck:
149 IMAGE: x86_64-gnu-distcheck
154 timeoutInMinutes: 180
160 - template: steps/macos.yml
163 # macOS builders. These are placed near the beginning because they are very
166 # OSX builders running tests, these run the full test suite.
167 # NO_DEBUG_ASSERTIONS=1 to make them go faster, but also do have some
168 # runners that run `//ignore-debug` tests.
170 # Note that the compiler is compiled to target 10.8 here because the Xcode
171 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7.
173 RUST_CHECK_TARGET: check
174 RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
175 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
176 MACOSX_DEPLOYMENT_TARGET: 10.8
177 MACOSX_STD_DEPLOYMENT_TARGET: 10.7
178 NO_LLVM_ASSERTIONS: 1
179 NO_DEBUG_ASSERTIONS: 1
182 RUST_CHECK_TARGET: dist
183 RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,armv7-apple-ios,armv7s-apple-ios,i386-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --enable-lldb --set rust.jemalloc
185 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
186 MACOSX_DEPLOYMENT_TARGET: 10.7
187 NO_LLVM_ASSERTIONS: 1
188 NO_DEBUG_ASSERTIONS: 1
189 DIST_REQUIRE_ALL_TOOLS: 1
191 dist-x86_64-apple-alt:
192 RUST_CHECK_TARGET: dist
193 RUST_CONFIGURE_ARGS: --enable-extended --enable-profiler --enable-lldb --set rust.jemalloc
195 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
196 MACOSX_DEPLOYMENT_TARGET: 10.7
197 NO_LLVM_ASSERTIONS: 1
198 NO_DEBUG_ASSERTIONS: 1
201 # # https://github.com/johnterickson/rust/issues/18
203 # RUST_CHECK_TARGET: check
204 # RUST_CONFIGURE_ARGS: --build=i686-apple-darwin --set rust.jemalloc
205 # RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
206 # MACOSX_DEPLOYMENT_TARGET: 10.8
207 # MACOSX_STD_DEPLOYMENT_TARGET: 10.7
208 # NO_LLVM_ASSERTIONS: 1
209 # NO_DEBUG_ASSERTIONS: 1
212 # RUST_CHECK_TARGET: dist
213 # RUST_CONFIGURE_ARGS: --build=i686-apple-darwin --enable-full-tools --enable-profiler --enable-lldb --set rust.jemalloc
215 # RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
216 # MACOSX_DEPLOYMENT_TARGET: 10.7
217 # NO_LLVM_ASSERTIONS: 1
218 # NO_DEBUG_ASSERTIONS: 1
219 # DIST_REQUIRE_ALL_TOOLS: 1
224 timeoutInMinutes: 180
226 vmImage: 'vs2017-win2016'
228 - template: steps/windows.yml
231 # 32/64 bit MSVC tests
234 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
235 SCRIPT: make ci-subset-1
237 NO_DEBUG_ASSERTIONS: 1
238 NO_LLVM_ASSERTIONS: 1
241 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
242 SCRIPT: make ci-subset-2
245 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
246 SCRIPT: make ci-subset-1
249 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
250 SCRIPT: make ci-subset-2
254 RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1
255 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
258 SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
259 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc
260 VCVARS_BAT: vcvars64.bat
264 SCRIPT: src/ci/docker/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstates.json windows
265 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstates.json --enable-test-miri
267 # 32/64-bit MinGW builds.
269 # We are using MinGW with posix threads since LLVM does not compile with
270 # the win32 threads version due to missing support for C++'s std::thread.
272 # Instead of relying on the MinGW version installed on appveryor we download
273 # and install one ourselves so we won't be surprised by changes to appveyor's
276 # Finally, note that the downloads below are all in the `rust-lang-ci` S3
277 # bucket, but they cleraly didn't originate there! The downloads originally
278 # came from the mingw-w64 SourceForge download site. Unfortunately
279 # SourceForge is notoriously flaky, so we mirror it on our own infrastructure.
282 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
283 SCRIPT: make ci-subset-1
284 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
285 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
288 NO_DEBUG_ASSERTIONS: 1
289 NO_LLVM_ASSERTIONS: 1
292 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
293 SCRIPT: make ci-subset-2
294 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
295 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
299 SCRIPT: make ci-subset-1
300 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
301 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
302 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
305 NO_DEBUG_ASSERTIONS: 1
306 NO_LLVM_ASSERTIONS: 1
309 SCRIPT: make ci-subset-2
310 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
311 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
312 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
315 # 32/64 bit MSVC and GNU deployment
317 RUST_CONFIGURE_ARGS: >
318 --build=x86_64-pc-windows-msvc
319 --target=x86_64-pc-windows-msvc,aarch64-pc-windows-msvc
322 SCRIPT: python x.py dist
323 DIST_REQUIRE_ALL_TOOLS: 1
326 RUST_CONFIGURE_ARGS: >
327 --build=i686-pc-windows-msvc
328 --target=i586-pc-windows-msvc
331 SCRIPT: python x.py dist
332 DIST_REQUIRE_ALL_TOOLS: 1
336 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools
337 SCRIPT: python x.py dist
338 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
339 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z
341 DIST_REQUIRE_ALL_TOOLS: 1
345 SCRIPT: python x.py dist
346 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-full-tools
347 MINGW_URL: https://s3-us-west-1.amazonaws.com/rust-lang-ci2/rust-ci-mirror
348 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z
350 DIST_REQUIRE_ALL_TOOLS: 1
353 # "alternate" deployment, see .travis.yml for more info
354 dist-x86_64-msvc-alt:
356 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler
357 SCRIPT: python x.py dist