]> git.lizzy.rs Git - rust.git/blob - src/ci/github-actions/ci.yml
ci: add aarch64-gnu as a fallible auto builder
[rust.git] / src / ci / github-actions / ci.yml
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 ###############################
19 #   YAML Anchors Definition   #
20 ###############################
21
22 # This key contains most of the YAML anchors that will be used later in the
23 # document. YAML anchors allows us to greatly reduce duplication inside the CI
24 # configuration by reusing parts of the configuration.
25 #
26 # YAML anchors work by defining an anchor with `&anchor-name` and reusing its
27 # content in another place with `*anchor-name`. The special `<<` map key merges
28 # the content of the map with the content of the anchor (or list of anchors).
29 #
30 # The expand-yaml-anchors tool will automatically remove this block from the
31 # output YAML file.
32 x--expand-yaml-anchors--remove:
33
34   - &shared-ci-variables
35     CI_JOB_NAME: ${{ matrix.name }}
36
37   - &public-variables
38     SCCACHE_BUCKET: rust-lang-ci-sccache2
39     TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate
40     CACHE_DOMAIN: ci-caches.rust-lang.org
41
42   - &prod-variables
43     SCCACHE_BUCKET: rust-lang-ci-sccache2
44     DEPLOY_BUCKET: rust-lang-ci2
45     TOOLSTATE_REPO: https://github.com/rust-lang-nursery/rust-toolstate
46     TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/rust-lang/rust/issues
47     TOOLSTATE_PUBLISH: 1
48     # AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named
49     # AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to
50     # rotate them in a single branch while keeping the old key in another
51     # branch, which wouldn't be possible if the key was named with the kind
52     # (caches, artifacts...).
53     CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL
54     ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
55     CACHE_DOMAIN: ci-caches.rust-lang.org
56
57   - &dummy-variables
58     SCCACHE_BUCKET: rust-lang-gha-caches
59     DEPLOY_BUCKET: rust-lang-gha
60     TOOLSTATE_REPO: https://github.com/pietroalbini/rust-toolstate
61     TOOLSTATE_ISSUES_API_URL: https://api.github.com/repos/pietroalbini/rust-toolstate/issues
62     TOOLSTATE_PUBLISH: 1
63     # AWS_SECRET_ACCESS_KEYs are stored in GitHub's secrets storage, named
64     # AWS_SECRET_ACCESS_KEY_<keyid>. Including the key id in the name allows to
65     # rotate them in a single branch while keeping the old key in another
66     # branch, which wouldn't be possible if the key was named with the kind
67     # (caches, artifacts...).
68     CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZOMUQATD5
69     ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZH5AYXDVF
70     CACHE_DOMAIN: ci-caches-gha.rust-lang.org
71
72   - &base-job
73     env: {}
74
75   - &job-linux-xl
76     os: ubuntu-latest-xl
77     <<: *base-job
78
79   - &job-macos-xl
80     os: macos-latest  # We don't have an XL builder for this
81     <<: *base-job
82
83   - &job-windows-xl
84     os: windows-latest-xl
85     <<: *base-job
86
87   - &job-aarch64-linux
88     os: [self-hosted, ARM64, linux]
89
90   - &step
91     if: success() && !env.SKIP_JOB
92
93   - &base-ci-job
94     timeout-minutes: 600
95     runs-on: "${{ matrix.os }}"
96     env: *shared-ci-variables
97     steps:
98       - name: disable git crlf conversion
99         run: git config --global core.autocrlf false
100
101       - name: checkout the source code
102         uses: actions/checkout@v1
103         with:
104           fetch-depth: 2
105
106       - name: configure GitHub Actions to kill the build when outdated
107         uses: rust-lang/simpleinfra/github-actions/cancel-outdated-builds@master
108         with:
109           github_token: "${{ secrets.github_token }}"
110         if: success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'
111         <<: *step
112
113       # Rust Log Analyzer can't currently detect the PR number of a GitHub
114       # Actions build on its own, so a hint in the log message is needed to
115       # point it in the right direction.
116       - name: configure the PR in which the error message will be posted
117         run: echo "[CI_PR_NUMBER=$num]"
118         env:
119           num: ${{ github.event.number }}
120         if: success() && !env.SKIP_JOBS && github.event_name == 'pull_request'
121
122       - name: add extra environment variables
123         run: src/ci/scripts/setup-environment.sh
124         env:
125           # Since it's not possible to merge `${{ matrix.env }}` with the other
126           # variables in `job.<name>.env`, the variables defined in the matrix
127           # are passed to the `setup-environment.sh` script encoded in JSON,
128           # which then uses log commands to actually set them.
129           EXTRA_VARIABLES: ${{ toJson(matrix.env) }}
130         <<: *step
131
132       - name: decide whether to skip this job
133         run: src/ci/scripts/should-skip-this.sh
134         <<: *step
135
136       - name: collect CPU statistics
137         run: src/ci/scripts/collect-cpu-stats.sh
138         <<: *step
139
140       - name: show the current environment
141         run: src/ci/scripts/dump-environment.sh
142         <<: *step
143
144       - name: install awscli
145         run: src/ci/scripts/install-awscli.sh
146         <<: *step
147
148       - name: install sccache
149         run: src/ci/scripts/install-sccache.sh
150         <<: *step
151
152       - name: install clang
153         run: src/ci/scripts/install-clang.sh
154         <<: *step
155
156       - name: install WIX
157         run: src/ci/scripts/install-wix.sh
158         <<: *step
159
160       - name: ensure the build happens on a partition with enough space
161         run: src/ci/scripts/symlink-build-dir.sh
162         <<: *step
163
164       - name: disable git crlf conversion
165         run: src/ci/scripts/disable-git-crlf-conversion.sh
166         <<: *step
167
168       - name: install MSYS2
169         run: src/ci/scripts/install-msys2.sh
170         <<: *step
171
172       - name: install MinGW
173         run: src/ci/scripts/install-mingw.sh
174         <<: *step
175
176       - name: install ninja
177         run: src/ci/scripts/install-ninja.sh
178         <<: *step
179
180       - name: enable ipv6 on Docker
181         run: src/ci/scripts/enable-docker-ipv6.sh
182         <<: *step
183
184       # Disable automatic line ending conversion (again). On Windows, when we're
185       # installing dependencies, something switches the git configuration directory or
186       # re-enables autocrlf. We've not tracked down the exact cause -- and there may
187       # be multiple -- but this should ensure submodules are checked out with the
188       # appropriate line endings.
189       - name: disable git crlf conversion
190         run: src/ci/scripts/disable-git-crlf-conversion.sh
191         <<: *step
192
193       - name: checkout submodules
194         run: src/ci/scripts/checkout-submodules.sh
195         <<: *step
196
197       - name: ensure line endings are correct
198         run: src/ci/scripts/verify-line-endings.sh
199         <<: *step
200
201       - name: run the build
202         run: src/ci/scripts/run-build-from-ci.sh
203         env:
204           AWS_ACCESS_KEY_ID: ${{ env.CACHES_AWS_ACCESS_KEY_ID }}
205           AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}
206           TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
207         <<: *step
208
209       - name: upload artifacts to S3
210         run: src/ci/scripts/upload-artifacts.sh
211         env:
212           AWS_ACCESS_KEY_ID: ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}
213           AWS_SECRET_ACCESS_KEY: ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}
214         # Adding a condition on DEPLOY=1 or DEPLOY_ALT=1 is not needed as all deploy
215         # builders *should* have the AWS credentials available. Still, explicitly
216         # adding the condition is helpful as this way CI will not silently skip
217         # deploying artifacts from a dist builder if the variables are misconfigured,
218         # erroring about invalid credentials instead.
219         if: success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')
220         <<: *step
221
222   # These snippets are used by the try-success, try-failure, auto-success and auto-failure jobs.
223   # Check out their documentation for more information on why they're needed.
224
225   - &base-outcome-job
226     name: bors build finished
227     runs-on: ubuntu-latest
228
229   - &base-success-job
230     steps:
231       - name: mark the job as a success
232         run: exit 0
233         shell: bash
234     <<: *base-outcome-job
235
236   - &base-failure-job
237     steps:
238       - name: mark the job as a failure
239         run: exit 1
240         shell: bash
241     <<: *base-outcome-job
242
243 ###########################
244 #   Builders definition   #
245 ###########################
246
247 name: CI
248 on:
249   push:
250     branches:
251       - auto
252       - try
253       - master
254   pull_request:
255     branches:
256       - "**"
257
258 defaults:
259   run:
260     # On Linux, macOS, and Windows, use the system-provided bash as the default
261     # shell. (This should only make a difference on Windows, where the default
262     # shell is PowerShell.)
263     shell: bash
264
265 jobs:
266   pr:
267     <<: *base-ci-job
268     name: PR
269     env:
270       <<: [*shared-ci-variables, *public-variables]
271     if: github.event_name == 'pull_request'
272     strategy:
273       matrix:
274         include:
275           - name: mingw-check
276             <<: *job-linux-xl
277
278           - name: x86_64-gnu-llvm-8
279             <<: *job-linux-xl
280
281           - name: x86_64-gnu-tools
282             env:
283               CI_ONLY_WHEN_SUBMODULES_CHANGED: 1
284             <<: *job-linux-xl
285
286   try:
287     <<: *base-ci-job
288     name: try
289     env:
290       <<: [*shared-ci-variables, *prod-variables]
291     if: github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'
292     strategy:
293       matrix:
294         include:
295           - name: dist-x86_64-linux
296             <<: *job-linux-xl
297
298   auto:
299     <<: *base-ci-job
300     name: auto
301     env:
302       <<: [*shared-ci-variables, *prod-variables]
303     if: github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'
304     strategy:
305       matrix:
306         include:
307           #############################
308           #   Linux/Docker builders   #
309           #############################
310
311           - name: arm-android
312             <<: *job-linux-xl
313
314           - name: armhf-gnu
315             <<: *job-linux-xl
316
317           - name: dist-aarch64-linux
318             <<: *job-linux-xl
319
320           - name: dist-android
321             <<: *job-linux-xl
322
323           - name: dist-arm-linux
324             <<: *job-linux-xl
325
326           - name: dist-armhf-linux
327             <<: *job-linux-xl
328
329           - name: dist-armv7-linux
330             <<: *job-linux-xl
331
332           - name: dist-i586-gnu-i586-i686-musl
333             <<: *job-linux-xl
334
335           - name: dist-i686-freebsd
336             <<: *job-linux-xl
337
338           - name: dist-i686-linux
339             <<: *job-linux-xl
340
341           - name: dist-mips-linux
342             <<: *job-linux-xl
343
344           - name: dist-mips64-linux
345             <<: *job-linux-xl
346
347           - name: dist-mips64el-linux
348             <<: *job-linux-xl
349
350           - name: dist-mipsel-linux
351             <<: *job-linux-xl
352
353           - name: dist-powerpc-linux
354             <<: *job-linux-xl
355
356           - name: dist-powerpc64-linux
357             <<: *job-linux-xl
358
359           - name: dist-powerpc64le-linux
360             <<: *job-linux-xl
361
362           - name: dist-riscv64-linux
363             <<: *job-linux-xl
364
365           - name: dist-s390x-linux
366             <<: *job-linux-xl
367
368           - name: dist-various-1
369             <<: *job-linux-xl
370
371           - name: dist-various-2
372             <<: *job-linux-xl
373
374           - name: dist-x86_64-freebsd
375             <<: *job-linux-xl
376
377           - name: dist-x86_64-illumos
378             <<: *job-linux-xl
379
380           - name: dist-x86_64-linux
381             <<: *job-linux-xl
382
383           - name: dist-x86_64-linux-alt
384             env:
385               IMAGE: dist-x86_64-linux
386             <<: *job-linux-xl
387
388           - name: dist-x86_64-musl
389             <<: *job-linux-xl
390
391           - name: dist-x86_64-netbsd
392             <<: *job-linux-xl
393
394           - name: i686-gnu
395             <<: *job-linux-xl
396
397           - name: i686-gnu-nopt
398             <<: *job-linux-xl
399
400           - name: mingw-check
401             <<: *job-linux-xl
402
403           - name: test-various
404             <<: *job-linux-xl
405
406           - name: wasm32
407             <<: *job-linux-xl
408
409           - name: x86_64-gnu
410             <<: *job-linux-xl
411
412           - name: x86_64-gnu-aux
413             <<: *job-linux-xl
414
415           - name: x86_64-gnu-debug
416             <<: *job-linux-xl
417
418           - name: x86_64-gnu-distcheck
419             <<: *job-linux-xl
420
421           - name: x86_64-gnu-full-bootstrap
422             <<: *job-linux-xl
423
424           - name: x86_64-gnu-llvm-8
425             env:
426               RUST_BACKTRACE: 1
427             <<: *job-linux-xl
428
429           - name: x86_64-gnu-nopt
430             <<: *job-linux-xl
431
432           - name: x86_64-gnu-tools
433             env:
434               DEPLOY_TOOLSTATES_JSON: toolstates-linux.json
435             <<: *job-linux-xl
436
437           ######################
438           #  Windows Builders  #
439           ######################
440
441           - name: x86_64-msvc-1
442             env:
443               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
444               SCRIPT: make ci-subset-1
445               # FIXME(#59637)
446               NO_DEBUG_ASSERTIONS: 1
447               NO_LLVM_ASSERTIONS: 1
448             <<: *job-windows-xl
449
450           - name: x86_64-msvc-2
451             env:
452               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-profiler
453               SCRIPT: make ci-subset-2
454             <<: *job-windows-xl
455
456           - name: i686-msvc-1
457             env:
458               RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
459               SCRIPT: make ci-subset-1
460               # FIXME(#59637)
461               NO_DEBUG_ASSERTIONS: 1
462               NO_LLVM_ASSERTIONS: 1
463             <<: *job-windows-xl
464
465           - name: i686-msvc-2
466             env:
467               RUST_CONFIGURE_ARGS: --build=i686-pc-windows-msvc
468               SCRIPT: make ci-subset-2
469               # FIXME(#59637)
470               NO_DEBUG_ASSERTIONS: 1
471               NO_LLVM_ASSERTIONS: 1
472             <<: *job-windows-xl
473
474           - name: x86_64-msvc-cargo
475             env:
476               SCRIPT: python x.py test src/tools/cargotest src/tools/cargo
477               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-lld
478               VCVARS_BAT: vcvars64.bat
479               # FIXME(#59637)
480               NO_DEBUG_ASSERTIONS: 1
481               NO_LLVM_ASSERTIONS: 1
482             <<: *job-windows-xl
483
484           - name: x86_64-msvc-tools
485             env:
486               SCRIPT: src/ci/docker/host-x86_64/x86_64-gnu-tools/checktools.sh x.py /tmp/toolstate/toolstates.json windows
487               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --save-toolstates=/tmp/toolstate/toolstates.json
488             <<: *job-windows-xl
489
490           # 32/64-bit MinGW builds.
491           #
492           # We are using MinGW with posix threads since LLVM does not compile with
493           # the win32 threads version due to missing support for C++'s std::thread.
494           #
495           # Instead of relying on the MinGW version installed on appveryor we download
496           # and install one ourselves so we won't be surprised by changes to appveyor's
497           # build image.
498           #
499           # Finally, note that the downloads below are all in the `rust-lang-ci` S3
500           # bucket, but they cleraly didn't originate there! The downloads originally
501           # came from the mingw-w64 SourceForge download site. Unfortunately
502           # SourceForge is notoriously flaky, so we mirror it on our own infrastructure.
503
504           - name: i686-mingw-1
505             env:
506               RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
507               SCRIPT: make ci-mingw-subset-1
508               CUSTOM_MINGW: 1
509               # FIXME(#59637)
510               NO_DEBUG_ASSERTIONS: 1
511               NO_LLVM_ASSERTIONS: 1
512             <<: *job-windows-xl
513
514           - name: i686-mingw-2
515             env:
516               RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu
517               SCRIPT: make ci-mingw-subset-2
518               CUSTOM_MINGW: 1
519             <<: *job-windows-xl
520
521           - name: x86_64-mingw-1
522             env:
523               SCRIPT: make ci-mingw-subset-1
524               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
525               CUSTOM_MINGW: 1
526               # FIXME(#59637)
527               NO_DEBUG_ASSERTIONS: 1
528               NO_LLVM_ASSERTIONS: 1
529             <<: *job-windows-xl
530
531           - name: x86_64-mingw-2
532             env:
533               SCRIPT: make ci-mingw-subset-2
534               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu
535               CUSTOM_MINGW: 1
536             <<: *job-windows-xl
537
538           - name: dist-x86_64-msvc
539             env:
540               RUST_CONFIGURE_ARGS: >-
541                 --build=x86_64-pc-windows-msvc
542                 --target=x86_64-pc-windows-msvc,aarch64-pc-windows-msvc
543                 --enable-full-tools
544                 --enable-profiler
545               SCRIPT: python x.py dist
546               DIST_REQUIRE_ALL_TOOLS: 1
547             <<: *job-windows-xl
548
549           - name: dist-i686-msvc
550             env:
551               RUST_CONFIGURE_ARGS: >-
552                 --build=i686-pc-windows-msvc
553                 --target=i586-pc-windows-msvc
554                 --enable-full-tools
555                 --enable-profiler
556               SCRIPT: python x.py dist
557               DIST_REQUIRE_ALL_TOOLS: 1
558             <<: *job-windows-xl
559
560           - name: dist-i686-mingw
561             env:
562               RUST_CONFIGURE_ARGS: --build=i686-pc-windows-gnu --enable-full-tools --enable-profiler
563               SCRIPT: python x.py dist
564               CUSTOM_MINGW: 1
565               DIST_REQUIRE_ALL_TOOLS: 1
566             <<: *job-windows-xl
567
568           - name: dist-x86_64-mingw
569             env:
570               SCRIPT: python x.py dist
571               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler
572               CUSTOM_MINGW: 1
573               DIST_REQUIRE_ALL_TOOLS: 1
574             <<: *job-windows-xl
575
576           - name: dist-x86_64-msvc-alt
577             env:
578               RUST_CONFIGURE_ARGS: --build=x86_64-pc-windows-msvc --enable-extended --enable-profiler
579               SCRIPT: python x.py dist
580             <<: *job-windows-xl
581
582   auto-fallible:
583     <<: *base-ci-job
584     name: auto-fallible
585     env:
586       <<: [*shared-ci-variables, *dummy-variables]
587     if: github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'
588     strategy:
589       matrix:
590         include:
591           #############################
592           #   Linux/Docker builders   #
593           #############################
594
595           - name: aarch64-gnu
596             <<: *job-aarch64-linux
597
598           ####################
599           #  macOS Builders  #
600           ####################
601
602           - name: dist-x86_64-apple
603             env:
604               SCRIPT: ./x.py dist
605               RUST_CONFIGURE_ARGS: --target=aarch64-apple-ios,x86_64-apple-ios --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc
606               RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
607               MACOSX_DEPLOYMENT_TARGET: 10.7
608               NO_LLVM_ASSERTIONS: 1
609               NO_DEBUG_ASSERTIONS: 1
610               DIST_REQUIRE_ALL_TOOLS: 1
611             <<: *job-macos-xl
612
613           - name: dist-x86_64-apple-alt
614             env:
615               SCRIPT: ./x.py dist
616               RUST_CONFIGURE_ARGS: --enable-extended --enable-profiler --set rust.jemalloc
617               RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
618               MACOSX_DEPLOYMENT_TARGET: 10.7
619               NO_LLVM_ASSERTIONS: 1
620               NO_DEBUG_ASSERTIONS: 1
621             <<: *job-macos-xl
622
623           - name: x86_64-apple
624             env:
625               SCRIPT: ./x.py test
626               RUST_CONFIGURE_ARGS: --build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc
627               RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
628               MACOSX_DEPLOYMENT_TARGET: 10.8
629               MACOSX_STD_DEPLOYMENT_TARGET: 10.7
630               NO_LLVM_ASSERTIONS: 1
631               NO_DEBUG_ASSERTIONS: 1
632             <<: *job-macos-xl
633
634   master:
635     name: master
636     runs-on: ubuntu-latest
637     env:
638       <<: [*prod-variables]
639     if: github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'
640     steps:
641       - name: checkout the source code
642         uses: actions/checkout@v1
643         with:
644           fetch-depth: 2
645
646       - name: publish toolstate
647         run: src/ci/publish_toolstate.sh
648         shell: bash
649         env:
650           TOOLSTATE_REPO_ACCESS_TOKEN: ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}
651         <<: *step
652
653   # These jobs don't actually test anything, but they're used to tell bors the
654   # build completed, as there is no practical way to detect when a workflow is
655   # successful listening to webhooks only.
656   try-success:
657     needs: [try]
658     if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
659     <<: *base-success-job
660   try-failure:
661     needs: [try]
662     if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
663     <<: *base-failure-job
664   auto-success:
665     needs: [auto]
666     if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
667     <<: *base-success-job
668   auto-failure:
669     needs: [auto]
670     if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
671     <<: *base-failure-job