fork/rust
git clone https://git.julia.blue/fork/rust
4560ea788cb
1.39.0
1# 2# Azure Pipelines "auto" branch build for Rust on Linux, macOS, and Windows. 3# 4 5pr: none 6trigger: 7 - auto 8 9variables: 10- group: prod-credentials 11 12jobs: 13- job: Linux 14 timeoutInMinutes: 600 15 pool: 16 vmImage: ubuntu-16.04 17 steps: 18 - template: steps/run.yml 19 strategy: 20 matrix: 21 x86_64-gnu-llvm-6.0: 22 IMAGE: x86_64-gnu-llvm-6.0 23 RUST_BACKTRACE: 1 24 25 dist-x86_64-linux: 26 IMAGE: dist-x86_64-linux 27 DEPLOY: 1 28 29 # "alternate" deployments, these are "nightlies" but have LLVM assertions 30 # turned on, they're deployed to a different location primarily for 31 # additional testing. 32 dist-x86_64-linux-alt: 33 IMAGE: dist-x86_64-linux 34 DEPLOY_ALT: 1 35 36 # Linux builders, remaining docker images 37 arm-android: 38 IMAGE: arm-android 39 40 armhf-gnu: 41 IMAGE: armhf-gnu 42 43 dist-various-1: 44 IMAGE: dist-various-1 45 DEPLOY: 1 46 47 dist-various-2: 48 IMAGE: dist-various-2 49 DEPLOY: 1 50 51 dist-aarch64-linux: 52 IMAGE: dist-aarch64-linux 53 DEPLOY: 1 54 55 dist-android: 56 IMAGE: dist-android 57 DEPLOY: 1 58 59 dist-arm-linux: 60 IMAGE: dist-arm-linux 61 DEPLOY: 1 62 63 dist-armhf-linux: 64 IMAGE: dist-armhf-linux 65 DEPLOY: 1 66 67 dist-armv7-linux: 68 IMAGE: dist-armv7-linux 69 DEPLOY: 1 70 71 dist-i586-gnu-i586-i686-musl: 72 IMAGE: dist-i586-gnu-i586-i686-musl 73 DEPLOY: 1 74 75 dist-i686-freebsd: 76 IMAGE: dist-i686-freebsd 77 DEPLOY: 1 78 79 dist-i686-linux: 80 IMAGE: dist-i686-linux 81 DEPLOY: 1 82 83 dist-mips-linux: 84 IMAGE: dist-mips-linux 85 DEPLOY: 1 86 87 dist-mips64-linux: 88 IMAGE: dist-mips64-linux 89 DEPLOY: 1 90 91 dist-mips64el-linux: 92 IMAGE: dist-mips64el-linux 93 DEPLOY: 1 94 95 dist-mipsel-linux: 96 IMAGE: dist-mipsel-linux 97 DEPLOY: 1 98 99 dist-powerpc-linux: 100 IMAGE: dist-powerpc-linux 101 DEPLOY: 1 102 103 dist-powerpc64-linux: 104 IMAGE: dist-powerpc64-linux 105 DEPLOY: 1 106 107 dist-powerpc64le-linux: 108 IMAGE: dist-powerpc64le-linux 109 DEPLOY: 1 110 111 dist-s390x-linux: 112 IMAGE: dist-s390x-linux 113 DEPLOY: 1 114 115 dist-x86_64-freebsd: 116 IMAGE: dist-x86_64-freebsd 117 DEPLOY: 1 118 119 dist-x86_64-musl: 120 IMAGE: dist-x86_64-musl 121 DEPLOY: 1 122 123 dist-x86_64-netbsd: 124 IMAGE: dist-x86_64-netbsd 125 DEPLOY: 1 126 127 i686-gnu: 128 IMAGE: i686-gnu 129 i686-gnu-nopt: 130 IMAGE: i686-gnu-nopt 131 test-various: 132 IMAGE: test-various 133 x86_64-gnu: 134 IMAGE: x86_64-gnu 135 x86_64-gnu-full-bootstrap: 136 IMAGE: x86_64-gnu-full-bootstrap 137 x86_64-gnu-aux: 138 IMAGE: x86_64-gnu-aux 139 x86_64-gnu-tools: 140 IMAGE: x86_64-gnu-tools 141 x86_64-gnu-debug: 142 IMAGE: x86_64-gnu-debug 143 x86_64-gnu-nopt: 144 IMAGE: x86_64-gnu-nopt 145 x86_64-gnu-distcheck: 146 IMAGE: x86_64-gnu-distcheck 147 mingw-check: 148 IMAGE: mingw-check 149 150- job: macOS 151 timeoutInMinutes: 600 152 pool: 153 vmImage: macos-10.13 154 steps: 155 - template: steps/run.yml 156 strategy: 157 matrix: 158 # OSX builders running tests, these run the full test suite. 159 # NO_DEBUG_ASSERTIONS=1 to make them go faster, but also do have some 160 # runners that run `//ignore-debug` tests. 161 # 162 # Note that the compiler is compiled to target 10.8 here because the Xcode 163 # version that we're using, 8.2, cannot compile LLVM for OSX 10.7. 164 x86_64-apple: 165 SCRIPT: ./x.py test 166 RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc 167 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 168 MACOSX_DEPLOYMENT_TARGET: 10.8 169 MACOSX_STD_DEPLOYMENT_TARGET: 10.7 170 NO_LLVM_ASSERTIONS: 1 171 NO_DEBUG_ASSERTIONS: 1 172 173 dist-x86_64-apple: 174 SCRIPT: ./x.py dist 175 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 --set rust.jemalloc 176 DEPLOY: 1 177 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 178 MACOSX_DEPLOYMENT_TARGET: 10.7 179 NO_LLVM_ASSERTIONS: 1 180 NO_DEBUG_ASSERTIONS: 1 181 DIST_REQUIRE_ALL_TOOLS: 1 182 183 dist-x86_64-apple-alt: 184 SCRIPT: ./x.py dist 185 RUST_CONFIGURE_ARGS: --enable-extended --enable-profiler --set rust.jemalloc 186 DEPLOY_ALT: 1 187 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 188 MACOSX_DEPLOYMENT_TARGET: 10.7 189 NO_LLVM_ASSERTIONS: 1 190 NO_DEBUG_ASSERTIONS: 1 191 192 i686-apple: 193 SCRIPT: ./x.py test 194 RUST_CONFIGURE_ARGS: --build=i686-apple-darwin --set rust.jemalloc 195 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 196 MACOSX_DEPLOYMENT_TARGET: 10.8 197 MACOSX_STD_DEPLOYMENT_TARGET: 10.7 198 NO_LLVM_ASSERTIONS: 1 199 NO_DEBUG_ASSERTIONS: 1 200 201 dist-i686-apple: 202 SCRIPT: ./x.py dist 203 RUST_CONFIGURE_ARGS: --build=i686-apple-darwin --enable-full-tools --enable-profiler --set rust.jemalloc 204 DEPLOY: 1 205 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 206 MACOSX_DEPLOYMENT_TARGET: 10.7 207 NO_LLVM_ASSERTIONS: 1 208 NO_DEBUG_ASSERTIONS: 1 209 DIST_REQUIRE_ALL_TOOLS: 1 210 211 212 213- job: Windows 214 timeoutInMinutes: 600 215 pool: 216 vmImage: 'vs2017-win2016' 217 steps: 218 - template: steps/run.yml 219 strategy: 220 matrix: 221 # 32/64 bit MSVC tests 222 x86_64-msvc-1: 223 MSYS_BITS: 64 224 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler 225 SCRIPT: make ci-subset-1 226 # FIXME(#59637) 227 NO_DEBUG_ASSERTIONS: 1 228 NO_LLVM_ASSERTIONS: 1 229 x86_64-msvc-2: 230 MSYS_BITS: 64 231 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler 232 SCRIPT: make ci-subset-2 233 i686-msvc-1: 234 MSYS_BITS: 32 235 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc 236 SCRIPT: make ci-subset-1 237 # FIXME(#59637) 238 NO_DEBUG_ASSERTIONS: 1 239 NO_LLVM_ASSERTIONS: 1 240 i686-msvc-2: 241 MSYS_BITS: 32 242 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc 243 SCRIPT: make ci-subset-2 244 # FIXME(#59637) 245 NO_DEBUG_ASSERTIONS: 1 246 NO_LLVM_ASSERTIONS: 1 247 # MSVC aux tests 248 x86_64-msvc-aux: 249 MSYS_BITS: 64 250 RUST_CHECK_TARGET: check-aux EXCLUDE_CARGO=1 251 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc 252 x86_64-msvc-cargo: 253 MSYS_BITS: 64 254 SCRIPT: python x.py test src/tools/cargotest src/tools/cargo 255 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc 256 VCVARS_BAT: vcvars64.bat 257 # FIXME(#59637) 258 NO_DEBUG_ASSERTIONS: 1 259 NO_LLVM_ASSERTIONS: 1 260 # MSVC tools tests 261 x86_64-msvc-tools: 262 MSYS_BITS: 64 263 SCRIPT: src/ci/docker/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstates.json windows 264 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstates.json 265 266 # 32/64-bit MinGW builds. 267 # 268 # We are using MinGW with posix threads since LLVM does not compile with 269 # the win32 threads version due to missing support for C++'s std::thread. 270 # 271 # Instead of relying on the MinGW version installed on appveryor we download 272 # and install one ourselves so we won't be surprised by changes to appveyor's 273 # build image. 274 # 275 # Finally, note that the downloads below are all in the `rust-lang-ci` S3 276 # bucket, but they cleraly didn't originate there! The downloads originally 277 # came from the mingw-w64 SourceForge download site. Unfortunately 278 # SourceForge is notoriously flaky, so we mirror it on our own infrastructure. 279 i686-mingw-1: 280 MSYS_BITS: 32 281 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu 282 SCRIPT: make ci-mingw-subset-1 283 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 284 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z 285 MINGW_DIR: mingw32 286 # FIXME(#59637) 287 NO_DEBUG_ASSERTIONS: 1 288 NO_LLVM_ASSERTIONS: 1 289 i686-mingw-2: 290 MSYS_BITS: 32 291 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu 292 SCRIPT: make ci-mingw-subset-2 293 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 294 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z 295 MINGW_DIR: mingw32 296 x86_64-mingw-1: 297 MSYS_BITS: 64 298 SCRIPT: make ci-mingw-subset-1 299 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu 300 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 301 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z 302 MINGW_DIR: mingw64 303 # FIXME(#59637) 304 NO_DEBUG_ASSERTIONS: 1 305 NO_LLVM_ASSERTIONS: 1 306 x86_64-mingw-2: 307 MSYS_BITS: 64 308 SCRIPT: make ci-mingw-subset-2 309 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu 310 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 311 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z 312 MINGW_DIR: mingw64 313 314 # 32/64 bit MSVC and GNU deployment 315 dist-x86_64-msvc: 316 RUST_CONFIGURE_ARGS: > 317 --build=x86_64-pc-windows-msvc 318 --target=x86_64-pc-windows-msvc,aarch64-pc-windows-msvc 319 --enable-full-tools 320 --enable-profiler 321 SCRIPT: python x.py dist 322 DIST_REQUIRE_ALL_TOOLS: 1 323 DEPLOY: 1 324 dist-i686-msvc: 325 RUST_CONFIGURE_ARGS: > 326 --build=i686-pc-windows-msvc 327 --target=i586-pc-windows-msvc 328 --enable-full-tools 329 --enable-profiler 330 SCRIPT: python x.py dist 331 DIST_REQUIRE_ALL_TOOLS: 1 332 DEPLOY: 1 333 dist-i686-mingw: 334 MSYS_BITS: 32 335 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler 336 SCRIPT: python x.py dist 337 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 338 MINGW_ARCHIVE: i686-6.3.0-release-posix-dwarf-rt_v5-rev2.7z 339 MINGW_DIR: mingw32 340 DIST_REQUIRE_ALL_TOOLS: 1 341 DEPLOY: 1 342 dist-x86_64-mingw: 343 MSYS_BITS: 64 344 SCRIPT: python x.py dist 345 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler 346 MINGW_URL: https://rust-lang-ci-mirrors.s3-us-west-1.amazonaws.com/rustc 347 MINGW_ARCHIVE: x86_64-6.3.0-release-posix-seh-rt_v5-rev2.7z 348 MINGW_DIR: mingw64 349 DIST_REQUIRE_ALL_TOOLS: 1 350 DEPLOY: 1 351 352 # "alternate" deployment, see .travis.yml for more info 353 dist-x86_64-msvc-alt: 354 MSYS_BITS: 64 355 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler 356 SCRIPT: python x.py dist 357 DEPLOY_ALT: 1