fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
28.9 KiB712 linesraw
1#############################################################
2#   WARNING: automatically generated file, DO NOT CHANGE!   #
3#############################################################
4
5# This file was automatically generated by the expand-yaml-anchors tool. The
6# source file that generated this one is:
7#
8#   src/ci/github-actions/ci.yml
9#
10# Once you make changes to that file you need to run:
11#
12#   ./x.py run src/tools/expand-yaml-anchors/
13#
14# The CI build will fail if the tool is not run after changes to this file.
15
16---
17name: CI
18"on":
19  push:
20    branches:
21      - auto
22      - try
23      - try-perf
24      - automation/bors/try
25      - automation/bors/try-merge
26      - master
27  pull_request:
28    branches:
29      - "**"
30permissions:
31  contents: read
32defaults:
33  run:
34    shell: bash
35concurrency:
36  group: "${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
37  cancel-in-progress: true
38jobs:
39  pr:
40    name: "PR - ${{ matrix.name }}"
41    env:
42      PR_CI_JOB: 1
43      CI_JOB_NAME: "${{ matrix.name }}"
44      CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
45      HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
46      SCCACHE_BUCKET: rust-lang-ci-sccache2
47      TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
48      CACHE_DOMAIN: ci-caches.rust-lang.org
49    if: "github.event_name == 'pull_request'"
50    continue-on-error: "${{ matrix.name == 'mingw-check-tidy' }}"
51    strategy:
52      matrix:
53        include:
54          - name: mingw-check
55            os: ubuntu-20.04-4core-16gb
56            env: {}
57          - name: mingw-check-tidy
58            os: ubuntu-20.04-4core-16gb
59            env: {}
60          - name: x86_64-gnu-llvm-15
61            os: ubuntu-20.04-16core-64gb
62            env: {}
63          - name: x86_64-gnu-tools
64            os: ubuntu-20.04-16core-64gb
65            env: {}
66    timeout-minutes: 600
67    runs-on: "${{ matrix.os }}"
68    steps:
69      - name: disable git crlf conversion
70        run: git config --global core.autocrlf false
71      - name: checkout the source code
72        uses: actions/checkout@v4
73        with:
74          fetch-depth: 2
75      - name: configure the PR in which the error message will be posted
76        run: "echo \"[CI_PR_NUMBER=$num]\""
77        env:
78          num: "${{ github.event.number }}"
79        if: "success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
80      - name: add extra environment variables
81        run: src/ci/scripts/setup-environment.sh
82        env:
83          EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
84        if: success() && !env.SKIP_JOB
85      - name: decide whether to skip this job
86        run: src/ci/scripts/should-skip-this.sh
87        if: success() && !env.SKIP_JOB
88      - name: ensure the channel matches the target branch
89        run: src/ci/scripts/verify-channel.sh
90        if: success() && !env.SKIP_JOB
91      - name: collect CPU statistics
92        run: src/ci/scripts/collect-cpu-stats.sh
93        if: success() && !env.SKIP_JOB
94      - name: show the current environment
95        run: src/ci/scripts/dump-environment.sh
96        if: success() && !env.SKIP_JOB
97      - name: install sccache
98        run: src/ci/scripts/install-sccache.sh
99        if: success() && !env.SKIP_JOB
100      - name: select Xcode
101        run: src/ci/scripts/select-xcode.sh
102        if: success() && !env.SKIP_JOB
103      - name: install clang
104        run: src/ci/scripts/install-clang.sh
105        if: success() && !env.SKIP_JOB
106      - name: install WIX
107        run: src/ci/scripts/install-wix.sh
108        if: success() && !env.SKIP_JOB
109      - name: disable git crlf conversion
110        run: src/ci/scripts/disable-git-crlf-conversion.sh
111        if: success() && !env.SKIP_JOB
112      - name: checkout submodules
113        run: src/ci/scripts/checkout-submodules.sh
114        if: success() && !env.SKIP_JOB
115      - name: install MSYS2
116        run: src/ci/scripts/install-msys2.sh
117        if: success() && !env.SKIP_JOB
118      - name: install MinGW
119        run: src/ci/scripts/install-mingw.sh
120        if: success() && !env.SKIP_JOB
121      - name: install ninja
122        run: src/ci/scripts/install-ninja.sh
123        if: success() && !env.SKIP_JOB
124      - name: enable ipv6 on Docker
125        run: src/ci/scripts/enable-docker-ipv6.sh
126        if: success() && !env.SKIP_JOB
127      - name: disable git crlf conversion
128        run: src/ci/scripts/disable-git-crlf-conversion.sh
129        if: success() && !env.SKIP_JOB
130      - name: ensure line endings are correct
131        run: src/ci/scripts/verify-line-endings.sh
132        if: success() && !env.SKIP_JOB
133      - name: ensure backported commits are in upstream branches
134        run: src/ci/scripts/verify-backported-commits.sh
135        if: success() && !env.SKIP_JOB
136      - name: ensure the stable version number is correct
137        run: src/ci/scripts/verify-stable-version-number.sh
138        if: success() && !env.SKIP_JOB
139      - name: run the build
140        run: src/ci/scripts/run-build-from-ci.sh
141        env:
142          AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
143          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
144          TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
145        if: success() && !env.SKIP_JOB
146      - name: create github artifacts
147        run: src/ci/scripts/create-doc-artifacts.sh
148        if: success() && !env.SKIP_JOB
149      - name: upload artifacts to github
150        uses: actions/upload-artifact@v3
151        with:
152          name: "${{ env.DOC_ARTIFACT_NAME }}"
153          path: obj/artifacts/doc
154          if-no-files-found: ignore
155          retention-days: 5
156        if: success() && !env.SKIP_JOB
157      - name: upload artifacts to S3
158        run: src/ci/scripts/upload-artifacts.sh
159        env:
160          AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
161          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
162        if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
163  auto:
164    name: "auto - ${{ matrix.name }}"
165    env:
166      CI_JOB_NAME: "${{ matrix.name }}"
167      CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
168      HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
169      SCCACHE_BUCKET: rust-lang-ci-sccache2
170      DEPLOY_BUCKET: rust-lang-ci2
171      TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
172      TOOLSTATE_ISSUES_API_URL: "https://api.github.com/repos/rust-lang/rust/issues"
173      TOOLSTATE_PUBLISH: 1
174      CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL
175      ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
176      AWS_REGION: us-west-1
177      CACHE_DOMAIN: ci-caches.rust-lang.org
178    if: "github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
179    strategy:
180      matrix:
181        include:
182          - name: aarch64-gnu
183            os:
184              - self-hosted
185              - ARM64
186              - linux
187          - name: arm-android
188            os: ubuntu-20.04-8core-32gb
189            env: {}
190          - name: armhf-gnu
191            os: ubuntu-20.04-8core-32gb
192            env: {}
193          - name: dist-aarch64-linux
194            os: ubuntu-20.04-8core-32gb
195            env: {}
196          - name: dist-android
197            os: ubuntu-20.04-8core-32gb
198            env: {}
199          - name: dist-arm-linux
200            os: ubuntu-20.04-16core-64gb
201            env: {}
202          - name: dist-armhf-linux
203            os: ubuntu-20.04-8core-32gb
204            env: {}
205          - name: dist-armv7-linux
206            os: ubuntu-20.04-8core-32gb
207            env: {}
208          - name: dist-i586-gnu-i586-i686-musl
209            os: ubuntu-20.04-8core-32gb
210            env: {}
211          - name: dist-i686-linux
212            os: ubuntu-20.04-8core-32gb
213            env: {}
214          - name: dist-loongarch64-linux
215            os: ubuntu-20.04-8core-32gb
216            env: {}
217          - name: dist-powerpc-linux
218            os: ubuntu-20.04-8core-32gb
219            env: {}
220          - name: dist-powerpc64-linux
221            os: ubuntu-20.04-8core-32gb
222            env: {}
223          - name: dist-powerpc64le-linux
224            os: ubuntu-20.04-8core-32gb
225            env: {}
226          - name: dist-riscv64-linux
227            os: ubuntu-20.04-8core-32gb
228            env: {}
229          - name: dist-s390x-linux
230            os: ubuntu-20.04-8core-32gb
231            env: {}
232          - name: dist-various-1
233            os: ubuntu-20.04-8core-32gb
234            env: {}
235          - name: dist-various-2
236            os: ubuntu-20.04-8core-32gb
237            env: {}
238          - name: dist-x86_64-freebsd
239            os: ubuntu-20.04-8core-32gb
240            env: {}
241          - name: dist-x86_64-illumos
242            os: ubuntu-20.04-8core-32gb
243            env: {}
244          - name: dist-x86_64-linux
245            os: ubuntu-20.04-16core-64gb
246            env: {}
247          - name: dist-x86_64-linux-alt
248            env:
249              IMAGE: dist-x86_64-linux
250            os: ubuntu-20.04-16core-64gb
251          - name: dist-x86_64-musl
252            os: ubuntu-20.04-8core-32gb
253            env: {}
254          - name: dist-x86_64-netbsd
255            os: ubuntu-20.04-8core-32gb
256            env: {}
257          - name: i686-gnu
258            os: ubuntu-20.04-8core-32gb
259            env: {}
260          - name: i686-gnu-nopt
261            os: ubuntu-20.04-8core-32gb
262            env: {}
263          - name: mingw-check
264            os: ubuntu-20.04-4core-16gb
265            env: {}
266          - name: test-various
267            os: ubuntu-20.04-8core-32gb
268            env: {}
269          - name: x86_64-gnu
270            os: ubuntu-20.04-4core-16gb
271            env: {}
272          - name: x86_64-gnu-stable
273            env:
274              IMAGE: x86_64-gnu
275              RUST_CI_OVERRIDE_RELEASE_CHANNEL: stable
276              CI_ONLY_WHEN_CHANNEL: nightly
277            os: ubuntu-20.04-4core-16gb
278          - name: x86_64-gnu-aux
279            os: ubuntu-20.04-4core-16gb
280            env: {}
281          - name: x86_64-gnu-debug
282            os: ubuntu-20.04-8core-32gb
283            env: {}
284          - name: x86_64-gnu-distcheck
285            os: ubuntu-20.04-8core-32gb
286            env: {}
287          - name: x86_64-gnu-llvm-16
288            env:
289              RUST_BACKTRACE: 1
290            os: ubuntu-20.04-8core-32gb
291          - name: x86_64-gnu-llvm-15
292            env:
293              RUST_BACKTRACE: 1
294            os: ubuntu-20.04-8core-32gb
295          - name: x86_64-gnu-nopt
296            os: ubuntu-20.04-4core-16gb
297            env: {}
298          - name: x86_64-gnu-tools
299            env:
300              DEPLOY_TOOLSTATES_JSON: toolstates-linux.json
301            os: ubuntu-20.04-8core-32gb
302          - name: dist-x86_64-apple
303            env:
304              SCRIPT: "./x.py dist bootstrap --include-default-paths --host=x86_64-apple-darwin --target=x86_64-apple-darwin"
305              RUST_CONFIGURE_ARGS: "--enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
306              RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
307              MACOSX_DEPLOYMENT_TARGET: 10.12
308              SELECT_XCODE: /Applications/Xcode_13.4.1.app
309              NO_LLVM_ASSERTIONS: 1
310              NO_DEBUG_ASSERTIONS: 1
311              NO_OVERFLOW_CHECKS: 1
312              DIST_REQUIRE_ALL_TOOLS: 1
313            os: macos-13
314          - name: dist-apple-various
315            env:
316              SCRIPT: "./x.py dist bootstrap --include-default-paths --host='' --target=aarch64-apple-ios,x86_64-apple-ios,aarch64-apple-ios-sim"
317              RUST_CONFIGURE_ARGS: "--enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
318              RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
319              MACOSX_DEPLOYMENT_TARGET: 10.12
320              SELECT_XCODE: /Applications/Xcode_13.4.1.app
321              NO_LLVM_ASSERTIONS: 1
322              NO_DEBUG_ASSERTIONS: 1
323              NO_OVERFLOW_CHECKS: 1
324            os: macos-13
325          - name: x86_64-apple-1
326            env:
327              SCRIPT: "./x.py --stage 2 test --skip tests/ui --skip tests/rustdoc --skip tests/run-make-fulldeps"
328              RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
329              RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
330              MACOSX_DEPLOYMENT_TARGET: 10.12
331              MACOSX_STD_DEPLOYMENT_TARGET: 10.12
332              NO_LLVM_ASSERTIONS: 1
333              NO_DEBUG_ASSERTIONS: 1
334              NO_OVERFLOW_CHECKS: 1
335            os: macos-13
336          - name: x86_64-apple-2
337            env:
338              SCRIPT: "./x.py --stage 2 test tests/ui tests/rustdoc tests/run-make-fulldeps"
339              RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false"
340              RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
341              MACOSX_DEPLOYMENT_TARGET: 10.12
342              MACOSX_STD_DEPLOYMENT_TARGET: 10.12
343              NO_LLVM_ASSERTIONS: 1
344              NO_DEBUG_ASSERTIONS: 1
345              NO_OVERFLOW_CHECKS: 1
346            os: macos-13
347          - name: dist-aarch64-apple
348            env:
349              SCRIPT: "./x.py dist bootstrap --include-default-paths --stage 2"
350              RUST_CONFIGURE_ARGS: "--build=x86_64-apple-darwin --host=aarch64-apple-darwin --target=aarch64-apple-darwin --enable-full-tools --enable-sanitizers --enable-profiler --disable-docs --set rust.jemalloc --set llvm.ninja=false"
351              RUSTC_RETRY_LINKER_ON_SEGFAULT: 1
352              SELECT_XCODE: /Applications/Xcode_13.4.1.app
353              USE_XCODE_CLANG: 1
354              MACOSX_DEPLOYMENT_TARGET: 11.0
355              MACOSX_STD_DEPLOYMENT_TARGET: 11.0
356              NO_LLVM_ASSERTIONS: 1
357              NO_DEBUG_ASSERTIONS: 1
358              NO_OVERFLOW_CHECKS: 1
359              DIST_REQUIRE_ALL_TOOLS: 1
360              JEMALLOC_SYS_WITH_LG_PAGE: 14
361            os: macos-13
362          - name: x86_64-msvc
363            env:
364              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-profiler"
365              SCRIPT: make ci-msvc
366            os: windows-2019-8core-32gb
367          - name: i686-msvc
368            env:
369              RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-msvc"
370              SCRIPT: make ci-msvc
371            os: windows-2019-8core-32gb
372          - name: x86_64-msvc-ext
373            env:
374              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
375              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-lld --save-toolstates=/tmp/toolstate/toolstates.json"
376              DEPLOY_TOOLSTATES_JSON: toolstates-windows.json
377            os: windows-2019-8core-32gb
378          - name: i686-mingw
379            env:
380              RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu"
381              SCRIPT: make ci-mingw
382              NO_DOWNLOAD_CI_LLVM: 1
383              CUSTOM_MINGW: 1
384            os: windows-2019-8core-32gb
385          - name: x86_64-mingw
386            env:
387              SCRIPT: make ci-mingw
388              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-profiler"
389              NO_DOWNLOAD_CI_LLVM: 1
390              CUSTOM_MINGW: 1
391            os: windows-2019-8core-32gb
392          - name: dist-x86_64-msvc
393            env:
394              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=x86_64-pc-windows-msvc --target=x86_64-pc-windows-msvc --enable-full-tools --enable-profiler"
395              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
396              DIST_REQUIRE_ALL_TOOLS: 1
397            os: windows-2019-8core-32gb
398          - name: dist-i686-msvc
399            env:
400              RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-msvc --host=i686-pc-windows-msvc --target=i686-pc-windows-msvc,i586-pc-windows-msvc --enable-full-tools --enable-profiler"
401              SCRIPT: python x.py dist bootstrap --include-default-paths
402              DIST_REQUIRE_ALL_TOOLS: 1
403            os: windows-2019-8core-32gb
404          - name: dist-aarch64-msvc
405            env:
406              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --host=aarch64-pc-windows-msvc --enable-full-tools --enable-profiler"
407              SCRIPT: python x.py dist bootstrap --include-default-paths
408              DIST_REQUIRE_ALL_TOOLS: 1
409            os: windows-2019-8core-32gb
410          - name: dist-i686-mingw
411            env:
412              RUST_CONFIGURE_ARGS: "--build=i686-pc-windows-gnu --enable-full-tools --enable-profiler"
413              NO_DOWNLOAD_CI_LLVM: 1
414              SCRIPT: python x.py dist bootstrap --include-default-paths
415              CUSTOM_MINGW: 1
416              DIST_REQUIRE_ALL_TOOLS: 1
417            os: windows-2019-8core-32gb
418          - name: dist-x86_64-mingw
419            env:
420              SCRIPT: python x.py dist bootstrap --include-default-paths
421              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-gnu --enable-full-tools --enable-profiler"
422              NO_DOWNLOAD_CI_LLVM: 1
423              CUSTOM_MINGW: 1
424              DIST_REQUIRE_ALL_TOOLS: 1
425            os: windows-2019-8core-32gb
426          - name: dist-x86_64-msvc-alt
427            env:
428              RUST_CONFIGURE_ARGS: "--build=x86_64-pc-windows-msvc --enable-extended --enable-profiler"
429              SCRIPT: python x.py dist bootstrap --include-default-paths
430            os: windows-2019-8core-32gb
431    timeout-minutes: 600
432    runs-on: "${{ matrix.os }}"
433    steps:
434      - name: disable git crlf conversion
435        run: git config --global core.autocrlf false
436      - name: checkout the source code
437        uses: actions/checkout@v4
438        with:
439          fetch-depth: 2
440      - name: configure the PR in which the error message will be posted
441        run: "echo \"[CI_PR_NUMBER=$num]\""
442        env:
443          num: "${{ github.event.number }}"
444        if: "success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
445      - name: add extra environment variables
446        run: src/ci/scripts/setup-environment.sh
447        env:
448          EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
449        if: success() && !env.SKIP_JOB
450      - name: decide whether to skip this job
451        run: src/ci/scripts/should-skip-this.sh
452        if: success() && !env.SKIP_JOB
453      - name: ensure the channel matches the target branch
454        run: src/ci/scripts/verify-channel.sh
455        if: success() && !env.SKIP_JOB
456      - name: collect CPU statistics
457        run: src/ci/scripts/collect-cpu-stats.sh
458        if: success() && !env.SKIP_JOB
459      - name: show the current environment
460        run: src/ci/scripts/dump-environment.sh
461        if: success() && !env.SKIP_JOB
462      - name: install sccache
463        run: src/ci/scripts/install-sccache.sh
464        if: success() && !env.SKIP_JOB
465      - name: select Xcode
466        run: src/ci/scripts/select-xcode.sh
467        if: success() && !env.SKIP_JOB
468      - name: install clang
469        run: src/ci/scripts/install-clang.sh
470        if: success() && !env.SKIP_JOB
471      - name: install WIX
472        run: src/ci/scripts/install-wix.sh
473        if: success() && !env.SKIP_JOB
474      - name: disable git crlf conversion
475        run: src/ci/scripts/disable-git-crlf-conversion.sh
476        if: success() && !env.SKIP_JOB
477      - name: checkout submodules
478        run: src/ci/scripts/checkout-submodules.sh
479        if: success() && !env.SKIP_JOB
480      - name: install MSYS2
481        run: src/ci/scripts/install-msys2.sh
482        if: success() && !env.SKIP_JOB
483      - name: install MinGW
484        run: src/ci/scripts/install-mingw.sh
485        if: success() && !env.SKIP_JOB
486      - name: install ninja
487        run: src/ci/scripts/install-ninja.sh
488        if: success() && !env.SKIP_JOB
489      - name: enable ipv6 on Docker
490        run: src/ci/scripts/enable-docker-ipv6.sh
491        if: success() && !env.SKIP_JOB
492      - name: disable git crlf conversion
493        run: src/ci/scripts/disable-git-crlf-conversion.sh
494        if: success() && !env.SKIP_JOB
495      - name: ensure line endings are correct
496        run: src/ci/scripts/verify-line-endings.sh
497        if: success() && !env.SKIP_JOB
498      - name: ensure backported commits are in upstream branches
499        run: src/ci/scripts/verify-backported-commits.sh
500        if: success() && !env.SKIP_JOB
501      - name: ensure the stable version number is correct
502        run: src/ci/scripts/verify-stable-version-number.sh
503        if: success() && !env.SKIP_JOB
504      - name: run the build
505        run: src/ci/scripts/run-build-from-ci.sh
506        env:
507          AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
508          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
509          TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
510        if: success() && !env.SKIP_JOB
511      - name: create github artifacts
512        run: src/ci/scripts/create-doc-artifacts.sh
513        if: success() && !env.SKIP_JOB
514      - name: upload artifacts to github
515        uses: actions/upload-artifact@v3
516        with:
517          name: "${{ env.DOC_ARTIFACT_NAME }}"
518          path: obj/artifacts/doc
519          if-no-files-found: ignore
520          retention-days: 5
521        if: success() && !env.SKIP_JOB
522      - name: upload artifacts to S3
523        run: src/ci/scripts/upload-artifacts.sh
524        env:
525          AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
526          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
527        if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
528  try:
529    name: "try - ${{ matrix.name }}"
530    env:
531      DIST_TRY_BUILD: 1
532      CI_JOB_NAME: "${{ matrix.name }}"
533      CARGO_REGISTRIES_CRATES_IO_PROTOCOL: sparse
534      HEAD_SHA: "${{ github.event.pull_request.head.sha || github.sha }}"
535      SCCACHE_BUCKET: rust-lang-ci-sccache2
536      DEPLOY_BUCKET: rust-lang-ci2
537      TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
538      TOOLSTATE_ISSUES_API_URL: "https://api.github.com/repos/rust-lang/rust/issues"
539      TOOLSTATE_PUBLISH: 1
540      CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL
541      ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
542      AWS_REGION: us-west-1
543      CACHE_DOMAIN: ci-caches.rust-lang.org
544    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'))"
545    strategy:
546      matrix:
547        include:
548          - name: dist-x86_64-linux
549            os: ubuntu-20.04-16core-64gb
550            env: {}
551    timeout-minutes: 600
552    runs-on: "${{ matrix.os }}"
553    steps:
554      - name: disable git crlf conversion
555        run: git config --global core.autocrlf false
556      - name: checkout the source code
557        uses: actions/checkout@v4
558        with:
559          fetch-depth: 2
560      - name: configure the PR in which the error message will be posted
561        run: "echo \"[CI_PR_NUMBER=$num]\""
562        env:
563          num: "${{ github.event.number }}"
564        if: "success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
565      - name: add extra environment variables
566        run: src/ci/scripts/setup-environment.sh
567        env:
568          EXTRA_VARIABLES: "${{ toJson(matrix.env) }}"
569        if: success() && !env.SKIP_JOB
570      - name: decide whether to skip this job
571        run: src/ci/scripts/should-skip-this.sh
572        if: success() && !env.SKIP_JOB
573      - name: ensure the channel matches the target branch
574        run: src/ci/scripts/verify-channel.sh
575        if: success() && !env.SKIP_JOB
576      - name: collect CPU statistics
577        run: src/ci/scripts/collect-cpu-stats.sh
578        if: success() && !env.SKIP_JOB
579      - name: show the current environment
580        run: src/ci/scripts/dump-environment.sh
581        if: success() && !env.SKIP_JOB
582      - name: install sccache
583        run: src/ci/scripts/install-sccache.sh
584        if: success() && !env.SKIP_JOB
585      - name: select Xcode
586        run: src/ci/scripts/select-xcode.sh
587        if: success() && !env.SKIP_JOB
588      - name: install clang
589        run: src/ci/scripts/install-clang.sh
590        if: success() && !env.SKIP_JOB
591      - name: install WIX
592        run: src/ci/scripts/install-wix.sh
593        if: success() && !env.SKIP_JOB
594      - name: disable git crlf conversion
595        run: src/ci/scripts/disable-git-crlf-conversion.sh
596        if: success() && !env.SKIP_JOB
597      - name: checkout submodules
598        run: src/ci/scripts/checkout-submodules.sh
599        if: success() && !env.SKIP_JOB
600      - name: install MSYS2
601        run: src/ci/scripts/install-msys2.sh
602        if: success() && !env.SKIP_JOB
603      - name: install MinGW
604        run: src/ci/scripts/install-mingw.sh
605        if: success() && !env.SKIP_JOB
606      - name: install ninja
607        run: src/ci/scripts/install-ninja.sh
608        if: success() && !env.SKIP_JOB
609      - name: enable ipv6 on Docker
610        run: src/ci/scripts/enable-docker-ipv6.sh
611        if: success() && !env.SKIP_JOB
612      - name: disable git crlf conversion
613        run: src/ci/scripts/disable-git-crlf-conversion.sh
614        if: success() && !env.SKIP_JOB
615      - name: ensure line endings are correct
616        run: src/ci/scripts/verify-line-endings.sh
617        if: success() && !env.SKIP_JOB
618      - name: ensure backported commits are in upstream branches
619        run: src/ci/scripts/verify-backported-commits.sh
620        if: success() && !env.SKIP_JOB
621      - name: ensure the stable version number is correct
622        run: src/ci/scripts/verify-stable-version-number.sh
623        if: success() && !env.SKIP_JOB
624      - name: run the build
625        run: src/ci/scripts/run-build-from-ci.sh
626        env:
627          AWS_ACCESS_KEY_ID: "${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
628          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
629          TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
630        if: success() && !env.SKIP_JOB
631      - name: create github artifacts
632        run: src/ci/scripts/create-doc-artifacts.sh
633        if: success() && !env.SKIP_JOB
634      - name: upload artifacts to github
635        uses: actions/upload-artifact@v3
636        with:
637          name: "${{ env.DOC_ARTIFACT_NAME }}"
638          path: obj/artifacts/doc
639          if-no-files-found: ignore
640          retention-days: 5
641        if: success() && !env.SKIP_JOB
642      - name: upload artifacts to S3
643        run: src/ci/scripts/upload-artifacts.sh
644        env:
645          AWS_ACCESS_KEY_ID: "${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
646          AWS_SECRET_ACCESS_KEY: "${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
647        if: "success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
648  master:
649    name: master
650    runs-on: ubuntu-latest
651    env:
652      SCCACHE_BUCKET: rust-lang-ci-sccache2
653      DEPLOY_BUCKET: rust-lang-ci2
654      TOOLSTATE_REPO: "https://github.com/rust-lang-nursery/rust-toolstate"
655      TOOLSTATE_ISSUES_API_URL: "https://api.github.com/repos/rust-lang/rust/issues"
656      TOOLSTATE_PUBLISH: 1
657      CACHES_AWS_ACCESS_KEY_ID: AKIA46X5W6CZI5DHEBFL
658      ARTIFACTS_AWS_ACCESS_KEY_ID: AKIA46X5W6CZN24CBO55
659      AWS_REGION: us-west-1
660      CACHE_DOMAIN: ci-caches.rust-lang.org
661    if: "github.event_name == 'push' && github.ref == 'refs/heads/master' && github.repository == 'rust-lang-ci/rust'"
662    steps:
663      - name: checkout the source code
664        uses: actions/checkout@v4
665        with:
666          fetch-depth: 2
667      - name: publish toolstate
668        run: src/ci/publish_toolstate.sh
669        shell: bash
670        env:
671          TOOLSTATE_REPO_ACCESS_TOKEN: "${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
672        if: success() && !env.SKIP_JOB
673  try-success:
674    needs:
675      - try
676    if: "success() && github.event_name == 'push' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.repository == 'rust-lang-ci/rust'"
677    steps:
678      - name: mark the job as a success
679        run: exit 0
680        shell: bash
681    name: bors build finished
682    runs-on: ubuntu-latest
683  try-failure:
684    needs:
685      - try
686    if: "!success() && github.event_name == 'push' && (github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.repository == 'rust-lang-ci/rust'"
687    steps:
688      - name: mark the job as a failure
689        run: exit 1
690        shell: bash
691    name: bors build finished
692    runs-on: ubuntu-latest
693  auto-success:
694    needs:
695      - auto
696    if: "success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
697    steps:
698      - name: mark the job as a success
699        run: exit 0
700        shell: bash
701    name: bors build finished
702    runs-on: ubuntu-latest
703  auto-failure:
704    needs:
705      - auto
706    if: "!success() && github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
707    steps:
708      - name: mark the job as a failure
709        run: exit 1
710        shell: bash
711    name: bors build finished
712    runs-on: ubuntu-latest