fork/rust
git clone https://git.julia.blue/fork/rust
3bcad65fbf6
master
1###################################################### 2# WARNING! Action needed when changing this file # 3###################################################### 4 5# Due to GitHub Actions limitations, we can't use YAML Anchors directly in the 6# CI configuration stored on the repository. To work around that this file is 7# expanded by a tool in the repository, and the expansion is committed as well. 8# 9# After you make any change to the file you'll need to run this command: 10# 11# ./x.py run src/tools/expand-yaml-anchors 12# 13# ...and commit the file it updated in addition to this one. If you forget this 14# step CI will fail. 15 16--- 17############################### 18# YAML Anchors Definition # 19############################### 20 21# This key contains most of the YAML anchors that will be used later in the 22# document. YAML anchors allows us to greatly reduce duplication inside the CI 23# configuration by reusing parts of the configuration. 24# 25# YAML anchors work by defining an anchor with `&anchor-name` and reusing its 26# content in another place with `*anchor-name`. The special `<<` map key merges 27# the content of the map with the content of the anchor (or list of anchors). 28# 29# The expand-yaml-anchors tool will automatically remove this block from the 30# output YAML file. 31x--expand-yaml-anchors--remove: 32 - &shared-ci-variables 33 CI_JOB_NAME: ${{ matrix.name }} 34 CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse 35 # commit of PR sha or commit sha. `GITHUB_SHA` is not accurate for PRs. 36 HEAD_SHA: ${{ github.event.pull_request.head.sha || github.sha }} 37 38 - &public-variables 39 SCCACHE_BUCKET: rust-lang-ci-sccache2 40 TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate 41 CACHE_DOMAIN: ci-caches.rust-lang.org 42 43 - &prod-variables 44 SCCACHE_BUCKET: rust-lang-ci-sccache2 45 DEPLOY_BUCKET: rust-lang-ci2 46 TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate 47 TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues 48 TOOLSTATE_PUBLISH: 1 49 # AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named 50 # AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to 51 # rotate them in a single branch while keeping the old key in another 52 # branch, which wouldn't be possible if the key was named with the kind 53 # (caches, artifacts...). 54 CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL 55 ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55 56 AWS_REGION: us-west-1 57 CACHE_DOMAIN: ci-caches.rust-lang.org 58 59 - &dummy-variables 60 SCCACHE_BUCKET: rust-lang-gha-caches 61 DEPLOY_BUCKET: rust-lang-gha 62 TOOLSTATE_REPO: https://github.com/pietroalbini/rust-toolstate 63 TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/pietroalbini/rust-toolstate/issues 64 TOOLSTATE_PUBLISH: 1 65 # AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named 66 # AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to 67 # rotate them in a single branch while keeping the old key in another 68 # branch, which wouldn't be possible if the key was named with the kind 69 # (caches, artifacts...). 70 CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5 71 ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF 72 AWS_REGION: us-west-1 73 CACHE_DOMAIN: ci-caches-gha.rust-lang.org 74 75 - &base-job 76 env: {} 77 78 - &job-linux-4c 79 os: ubuntu-20.04-4core-16gb 80 <<: *base-job 81 82 - &job-linux-8c 83 os: ubuntu-20.04-8core-32gb 84 <<: *base-job 85 86 - &job-linux-16c 87 os: ubuntu-20.04-16core-64gb 88 <<: *base-job 89 90 - &job-macos-xl 91 os: macos-13 # We use the standard runner for now 92 <<: *base-job 93 94 - &job-windows-8c 95 os: windows-2019-8core-32gb 96 <<: *base-job 97 98 - &job-windows-16c 99 os: windows-2019-16core-64gb 100 <<: *base-job 101 102 - &job-aarch64-linux 103 os: [self-hosted, ARM64, linux] 104 105 - &step 106 if: success() && !env.SKIP_JOB 107 108 - &base-ci-job 109 timeout-minutes: 600 110 runs-on: "${{ matrix.os }}" 111 env: *shared-ci-variables 112 steps: 113 - name: disable git crlf conversion 114 run: git config --global core.autocrlf false 115 116 - name: checkout the source code 117 uses: actions/checkout@v4 118 with: 119 fetch-depth: 2 120 121 # Rust Log Analyzer can't currently detect the PR number of a GitHub 122 # Actions build on its own, so a hint in the log message is needed to 123 # point it in the right direction. 124 - name: configure the PR in which the error message will be posted 125 run: echo "[CI_PR_NUMBER=$num]" 126 env: 127 num: ${{ github.event.number }} 128 if: success() && !env.SKIP_JOB && github.event_name == 'pull_request' 129 130 - name: add extra environment variables 131 run: src/ci/scripts/setup-environment.sh 132 env: 133 # Since it's not possible to merge `${{ matrix.env }}` with the other 134 # variables in `job.<name>.env`, the variables defined in the matrix 135 # are passed to the `setup-environment.sh` script encoded in JSON, 136 # which then uses log commands to actually set them. 137 EXTRA_VARIABLES: ${{ toJson(matrix.env) }} 138 <<: *step 139 140 - name: decide whether to skip this job 141 run: src/ci/scripts/should-skip-this.sh 142 <<: *step 143 144 - name: ensure the channel matches the target branch 145 run: src/ci/scripts/verify-channel.sh 146 <<: *step 147 148 - name: collect CPU statistics 149 run: src/ci/scripts/collect-cpu-stats.sh 150 <<: *step 151 152 - name: show the current environment 153 run: src/ci/scripts/dump-environment.sh 154 <<: *step 155 156 - name: install sccache 157 run: src/ci/scripts/install-sccache.sh 158 <<: *step 159 160 - name: select Xcode 161 run: src/ci/scripts/select-xcode.sh 162 <<: *step 163 164 - name: install clang 165 run: src/ci/scripts/install-clang.sh 166 <<: *step 167 168 - name: install WIX 169 run: src/ci/scripts/install-wix.sh 170 <<: *step 171 172 - name: disable git crlf conversion 173 run: src/ci/scripts/disable-git-crlf-conversion.sh 174 <<: *step 175 176 - name: checkout submodules 177 run: src/ci/scripts/checkout-submodules.sh 178 <<: *step 179 180 - name: install MSYS2 181 run: src/ci/scripts/install-msys2.sh 182 <<: *step 183 184 - name: install MinGW 185 run: src/ci/scripts/install-mingw.sh 186 <<: *step 187 188 - name: install ninja 189 run: src/ci/scripts/install-ninja.sh 190 <<: *step 191 192 - name: enable ipv6 on Docker 193 run: src/ci/scripts/enable-docker-ipv6.sh 194 <<: *step 195 196 # Disable automatic line ending conversion (again). On Windows, when we're 197 # installing dependencies, something switches the git configuration directory or 198 # re-enables autocrlf. We've not tracked down the exact cause -- and there may 199 # be multiple -- but this should ensure submodules are checked out with the 200 # appropriate line endings. 201 - name: disable git crlf conversion 202 run: src/ci/scripts/disable-git-crlf-conversion.sh 203 <<: *step 204 205 - name: ensure line endings are correct 206 run: src/ci/scripts/verify-line-endings.sh 207 <<: *step 208 209 - name: ensure backported commits are in upstream branches 210 run: src/ci/scripts/verify-backported-commits.sh 211 <<: *step 212 213 - name: ensure the stable version number is correct 214 run: src/ci/scripts/verify-stable-version-number.sh 215 <<: *step 216 217 - name: run the build 218 run: src/ci/scripts/run-build-from-ci.sh 219 env: 220 AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }} 221 AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }} 222 TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }} 223 <<: *step 224 225 - name: create github artifacts 226 run: src/ci/scripts/create-doc-artifacts.sh 227 <<: *step 228 229 - name: upload artifacts to github 230 uses: actions/upload-artifact@v3 231 with: 232 # name is set in previous step 233 name: ${{ env.DOC_ARTIFACT_NAME }} 234 path: obj/artifacts/doc 235 if-no-files-found: ignore 236 retention-days: 5 237 <<: *step 238 239 - name: upload artifacts to S3 240 run: src/ci/scripts/upload-artifacts.sh 241 env: 242 AWS_ACCESS_KEY_ID: ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }} 243 AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }} 244 # Adding a condition on DEPLOY=1 or DEPLOY_ALT=1 is not needed as all deploy 245 # builders *should* have the AWS credentials available. Still, explicitly 246 # adding the condition is helpful as this way CI will not silently skip 247 # deploying artifacts from a dist builder if the variables are misconfigured, 248 # erroring about invalid credentials instead. 249 if: success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1') 250 <<: *step 251 252 # These snippets are used by the try-success, try-failure, auto-success and auto-failure jobs. 253 # Check out their documentation for more information on why they're needed. 254 255 - &base-outcome-job 256 name: bors build finished 257 runs-on: ubuntu-latest 258 259 - &base-success-job 260 steps: 261 - name: mark the job as a success 262 run: exit 0 263 shell: bash 264 <<: *base-outcome-job 265 266 - &base-failure-job 267 steps: 268 - name: mark the job as a failure 269 run: exit 1 270 shell: bash 271 <<: *base-outcome-job 272 273########################### 274# Builders definition # 275########################### 276 277name: CI 278on: 279 push: 280 branches: 281 - auto 282 - try 283 - try-perf 284 - automation/bors/try 285 - automation/bors/try-merge 286 - master 287 pull_request: 288 branches: 289 - "**" 290 291permissions: 292 contents: read 293 294defaults: 295 run: 296 # On Linux, macOS, and Windows, use the system-provided bash as the default 297 # shell. (This should only make a difference on Windows, where the default 298 # shell is PowerShell.) 299 shell: bash 300 301concurrency: 302 # For a given workflow, if we push to the same branch, cancel all previous builds on that branch. 303 # We add an exception for try builds (try branch) and unrolled rollup builds (try-perf), which 304 # are all triggered on the same branch, but which should be able to run concurrently. 305 group: ${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }} 306 cancel-in-progress: true 307 308jobs: 309 pr: 310 <<: *base-ci-job 311 name: PR - ${{ matrix.name }} 312 env: 313 <<: [*shared-ci-variables, *public-variables] 314 PR_CI_JOB: 1 315 if: github.event_name == 'pull_request' 316 continue-on-error: ${{ matrix.name == 'mingw-check-tidy' }} 317 strategy: 318 matrix: 319 include: 320 - name: mingw-check 321 <<: *job-linux-4c 322 323 - name: mingw-check-tidy 324 <<: *job-linux-4c 325 326 - name: x86_64-gnu-llvm-15 327 <<: *job-linux-16c 328 329 - name: x86_64-gnu-tools 330 <<: *job-linux-16c 331 332 auto: 333 <<: *base-ci-job 334 name: auto - ${{ matrix.name }} 335 env: 336 <<: [*shared-ci-variables, *prod-variables] 337 if: github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust' 338 strategy: 339 matrix: 340 include: 341 ############################# 342 # Linux/Docker builders # 343 ############################# 344 345 - name: aarch64-gnu 346 <<: *job-aarch64-linux 347 348 - name: arm-android 349 <<: *job-linux-8c 350 351 - name: armhf-gnu 352 <<: *job-linux-8c 353 354 - name: dist-aarch64-linux 355 <<: *job-linux-8c 356 357 - name: dist-android 358 <<: *job-linux-8c 359 360 - name: dist-arm-linux 361 <<: *job-linux-16c 362 363 - name: dist-armhf-linux 364 <<: *job-linux-8c 365 366 - name: dist-armv7-linux 367 <<: *job-linux-8c 368 369 - name: dist-i586-gnu-i586-i686-musl 370 <<: *job-linux-8c 371 372 - name: dist-i686-linux 373 <<: *job-linux-8c 374 375 - name: dist-loongarch64-linux 376 <<: *job-linux-8c 377 378 - name: dist-powerpc-linux 379 <<: *job-linux-8c 380 381 - name: dist-powerpc64-linux 382 <<: *job-linux-8c 383 384 - name: dist-powerpc64le-linux 385 <<: *job-linux-8c 386 387 - name: dist-riscv64-linux 388 <<: *job-linux-8c 389 390 - name: dist-s390x-linux 391 <<: *job-linux-8c 392 393 - name: dist-various-1 394 <<: *job-linux-8c 395 396 - name: dist-various-2 397 <<: *job-linux-8c 398 399 - name: dist-x86_64-freebsd 400 <<: *job-linux-8c 401 402 - name: dist-x86_64-illumos 403 <<: *job-linux-8c 404 405 - &dist-x86_64-linux 406 name: dist-x86_64-linux 407 <<: *job-linux-16c 408 409 - name: dist-x86_64-linux-alt 410 env: 411 IMAGE: dist-x86_64-linux 412 <<: *job-linux-16c 413 414 - name: dist-x86_64-musl 415 <<: *job-linux-8c 416 417 - name: dist-x86_64-netbsd 418 <<: *job-linux-8c 419 420 - name: i686-gnu 421 <<: *job-linux-8c 422 423 - name: i686-gnu-nopt 424 <<: *job-linux-8c 425 426 - name: mingw-check 427 <<: *job-linux-4c 428 429 - name: test-various 430 <<: *job-linux-8c 431 432 - name: x86_64-gnu 433 <<: *job-linux-4c 434 435 # This job ensures commits landing on nightly still pass the full 436 # test suite on the stable channel. There are some UI tests that 437 # depend on the channel being built (for example if they include the 438 # channel name on the output), and this builder prevents landing 439 # changes that would result in broken builds after a promotion. 440 - name: x86_64-gnu-stable 441 env: 442 IMAGE: x86_64-gnu 443 RUST_CI_OVERRIDE_RELEASE_CHANNEL: stable 444 # Only run this job on the nightly channel. Running this on beta 445 # could cause failures when `dev: 1` in `stage0.txt`, and running 446 # this on stable is useless. 447 CI_ONLY_WHEN_CHANNEL: nightly 448 <<: *job-linux-4c 449 450 - name: x86_64-gnu-aux 451 <<: *job-linux-4c 452 453 - name: x86_64-gnu-debug 454 <<: *job-linux-8c 455 456 - name: x86_64-gnu-distcheck 457 <<: *job-linux-8c 458 459 - name: x86_64-gnu-llvm-16 460 env: 461 RUST_BACKTRACE: 1 462 <<: *job-linux-8c 463 464 - name: x86_64-gnu-llvm-15 465 env: 466 RUST_BACKTRACE: 1 467 <<: *job-linux-8c 468 469 - name: x86_64-gnu-nopt 470 <<: *job-linux-4c 471 472 - name: x86_64-gnu-tools 473 env: 474 DEPLOY_TOOLSTATES_JSON: toolstates-linux.json 475 <<: *job-linux-8c 476 477 #################### 478 # macOS Builders # 479 #################### 480 481 - name: dist-x86_64-apple 482 env: 483 SCRIPT: ./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin 484 RUST_CONFIGURE_ARGS: --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin 485 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 486 MACOSX_DEPLOYMENT_TARGET: 10.12 487 SELECT_XCODE: /Applications/Xcode_13.4.1.app 488 NO_LLVM_ASSERTIONS: 1 489 NO_DEBUG_ASSERTIONS: 1 490 NO_OVERFLOW_CHECKS: 1 491 DIST_REQUIRE_ALL_TOOLS: 1 492 <<: *job-macos-xl 493 494 - name: dist-apple-various 495 env: 496 SCRIPT: ./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim 497 RUST_CONFIGURE_ARGS: --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false 498 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 499 MACOSX_DEPLOYMENT_TARGET: 10.12 500 SELECT_XCODE: /Applications/Xcode_13.4.1.app 501 NO_LLVM_ASSERTIONS: 1 502 NO_DEBUG_ASSERTIONS: 1 503 NO_OVERFLOW_CHECKS: 1 504 <<: *job-macos-xl 505 506 - name: x86_64-apple-1 507 env: &env-x86_64-apple-tests 508 SCRIPT: ./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc --skip tests/run-make-fulldeps 509 RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false 510 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 511 MACOSX_DEPLOYMENT_TARGET: 10.12 512 MACOSX_STD_DEPLOYMENT_TARGET: 10.12 513 NO_LLVM_ASSERTIONS: 1 514 NO_DEBUG_ASSERTIONS: 1 515 NO_OVERFLOW_CHECKS: 1 516 <<: *job-macos-xl 517 518 - name: x86_64-apple-2 519 env: 520 SCRIPT: ./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps 521 <<: *env-x86_64-apple-tests 522 <<: *job-macos-xl 523 524 # This target only needs to support 11.0 and up as nothing else supports the hardware 525 - name: dist-aarch64-apple 526 env: 527 SCRIPT: ./x.py dist bootstrap --include-default-paths --stage 2 528 RUST_CONFIGURE_ARGS: >- 529 --build=x86_64-apple-darwin 530 --host=aarch64-apple-darwin 531 --target=aarch64-apple-darwin 532 --enable-full-tools 533 --enable-sanitizers 534 --enable-profiler 535 --disable-docs 536 --set rust.jemalloc 537 --set llvm.ninja=false 538 RUSTC_RETRY_LINKER_ON_SEGFAULT: 1 539 SELECT_XCODE: /Applications/Xcode_13.4.1.app 540 USE_XCODE_CLANG: 1 541 MACOSX_DEPLOYMENT_TARGET: 11.0 542 MACOSX_STD_DEPLOYMENT_TARGET: 11.0 543 NO_LLVM_ASSERTIONS: 1 544 NO_DEBUG_ASSERTIONS: 1 545 NO_OVERFLOW_CHECKS: 1 546 DIST_REQUIRE_ALL_TOOLS: 1 547 # Corresponds to 16K page size 548 # 549 # Shouldn't be needed if jemalloc-sys is updated to 550 # handle this platform like iOS or if we build on 551 # aarch64-apple-darwin itself. 552 # 553 # https://github.com/gnzlbg/jemallocator/blob/c27a859e98e3cb790dc269773d9da71a1e918458/jemalloc-sys/build.rs#L237 554 JEMALLOC_SYS_WITH_LG_PAGE: 14 555 <<: *job-macos-xl 556 557 ###################### 558 # Windows Builders # 559 ###################### 560 561 - name: x86_64-msvc 562 env: 563 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler 564 SCRIPT: make ci-msvc 565 <<: *job-windows-8c 566 567 - name: i686-msvc 568 env: 569 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc 570 SCRIPT: make ci-msvc 571 <<: *job-windows-8c 572 573 - name: x86_64-msvc-ext 574 env: 575 SCRIPT: python x.py --stage 2 test src/tools/cargotest src/tools/cargo && src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstate/toolstates.json windows 576 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-lld --save-toolstates=/tmp/toolstate/toolstates.json 577 DEPLOY_TOOLSTATES_JSON: toolstates-windows.json 578 <<: *job-windows-8c 579 580 # 32/64-bit MinGW builds. 581 # 582 # We are using MinGW with POSIX threads since LLVM requires 583 # C++'s std::thread which is disabled in libstdc++ with win32 threads. 584 # FIXME: Libc++ doesn't have this limitation so we can avoid 585 # winpthreads if we switch to it. 586 # 587 # Instead of relying on the MinGW version installed on CI we download 588 # and install one ourselves so we won't be surprised by changes to CI's 589 # build image. 590 # 591 # Finally, note that the downloads below are all in the `rust-lang-ci` S3 592 # bucket, but they clearly didn't originate there! The downloads originally 593 # came from the mingw-w64 SourceForge download site. Unfortunately 594 # SourceForge is notoriously flaky, so we mirror it on our own infrastructure. 595 596 - name: i686-mingw 597 env: 598 RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu 599 SCRIPT: make ci-mingw 600 # We are intentionally allowing an old toolchain on this builder (and that's 601 # incompatible with LLVM downloads today). 602 NO_DOWNLOAD_CI_LLVM: 1 603 CUSTOM_MINGW: 1 604 <<: *job-windows-8c 605 606 - name: x86_64-mingw 607 env: 608 SCRIPT: make ci-mingw 609 RUST_CONFIGURE_ARGS: >- 610 --build=x86_64-pc-windows-gnu 611 --enable-profiler 612 # We are intentionally allowing an old toolchain on this builder (and that's 613 # incompatible with LLVM downloads today). 614 NO_DOWNLOAD_CI_LLVM: 1 615 CUSTOM_MINGW: 1 616 <<: *job-windows-8c 617 618 - name: dist-x86_64-msvc 619 env: 620 RUST_CONFIGURE_ARGS: >- 621 --build=x86_64-pc-windows-msvc 622 --host=x86_64-pc-windows-msvc 623 --target=x86_64-pc-windows-msvc 624 --enable-full-tools 625 --enable-profiler 626 SCRIPT: python x.py build --set rust.debug=true opt-dist && PGO_HOST=x86_64-pc-windows-msvc ./build/x86_64-pc-windows-msvc/stage0-tools-bin/opt-dist windows-ci -- python x.py dist bootstrap --include-default-paths 627 DIST_REQUIRE_ALL_TOOLS: 1 628 <<: *job-windows-8c 629 630 - name: dist-i686-msvc 631 env: 632 RUST_CONFIGURE_ARGS: >- 633 --build=i686-pc-windows-msvc 634 --host=i686-pc-windows-msvc 635 --target=i686-pc-windows-msvc,i586-pc-windows-msvc 636 --enable-full-tools 637 --enable-profiler 638 SCRIPT: python x.py dist bootstrap --include-default-paths 639 DIST_REQUIRE_ALL_TOOLS: 1 640 <<: *job-windows-8c 641 642 - name: dist-aarch64-msvc 643 env: 644 RUST_CONFIGURE_ARGS: >- 645 --build=x86_64-pc-windows-msvc 646 --host=aarch64-pc-windows-msvc 647 --enable-full-tools 648 --enable-profiler 649 SCRIPT: python x.py dist bootstrap --include-default-paths 650 DIST_REQUIRE_ALL_TOOLS: 1 651 <<: *job-windows-8c 652 653 - name: dist-i686-mingw 654 env: 655 RUST_CONFIGURE_ARGS: >- 656 --build=i686-pc-windows-gnu 657 --enable-full-tools 658 --enable-profiler 659 # We are intentionally allowing an old toolchain on this builder (and that's 660 # incompatible with LLVM downloads today). 661 NO_DOWNLOAD_CI_LLVM: 1 662 SCRIPT: python x.py dist bootstrap --include-default-paths 663 CUSTOM_MINGW: 1 664 DIST_REQUIRE_ALL_TOOLS: 1 665 <<: *job-windows-8c 666 667 - name: dist-x86_64-mingw 668 env: 669 SCRIPT: python x.py dist bootstrap --include-default-paths 670 RUST_CONFIGURE_ARGS: >- 671 --build=x86_64-pc-windows-gnu 672 --enable-full-tools 673 --enable-profiler 674 # We are intentionally allowing an old toolchain on this builder (and that's 675 # incompatible with LLVM downloads today). 676 NO_DOWNLOAD_CI_LLVM: 1 677 CUSTOM_MINGW: 1 678 DIST_REQUIRE_ALL_TOOLS: 1 679 <<: *job-windows-8c 680 681 - name: dist-x86_64-msvc-alt 682 env: 683 RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler 684 SCRIPT: python x.py dist bootstrap --include-default-paths 685 <<: *job-windows-8c 686 687 try: 688 <<: *base-ci-job 689 name: try - ${{ matrix.name }} 690 env: 691 DIST_TRY_BUILD: 1 692 <<: [*shared-ci-variables, *prod-variables] 693 if: github.event_name == 'push' && (((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.repository == 'rust-lang-ci/rust') || ((github.ref == 'refs/heads/automation/bors/try') && github.repository == 'rust-lang/rust')) 694 strategy: 695 matrix: 696 include: 697 - &dist-x86_64-linux 698 name: dist-x86_64-linux 699 <<: *job-linux-16c 700 701 master: 702 name: master 703 runs-on: ubuntu-latest 704 env: 705 <<: [*prod-variables] 706 if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust' 707 steps: 708 - name: checkout the source code 709 uses: actions/checkout@v4 710 with: 711 fetch-depth: 2 712 713 - name: publish toolstate 714 run: src/ci/publish_toolstate.sh 715 shell: bash 716 env: 717 TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }} 718 <<: *step 719 720 # These jobs don't actually test anything, but they're used to tell bors the 721 # build completed, as there is no practical way to detect when a workflow is 722 # successful listening to webhooks only. 723 try-success: 724 needs: [try] 725 if: "success() && github.event_name == 'push' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.repository == 'rust-lang-ci/rust'" 726 <<: *base-success-job 727 try-failure: 728 needs: [try] 729 if: "!success() && github.event_name == 'push' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.repository == 'rust-lang-ci/rust'" 730 <<: *base-failure-job 731 auto-success: 732 needs: [auto] 733 if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" 734 <<: *base-success-job 735 auto-failure: 736 needs: [auto] 737 if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'" 738 <<: *base-failure-job