@@ -35,130 +35,6 @@ concurrency:
35
35
group : " ${{ github.workflow }}-${{ ((github.ref == 'refs/heads/try' || github.ref == 'refs/heads/try-perf') && github.sha) || github.ref }}"
36
36
cancel-in-progress : true
37
37
jobs :
38
- pr :
39
- name : " PR - ${{ matrix.name }}"
40
- env :
41
- PR_CI_JOB : 1
42
- CI_JOB_NAME : " ${{ matrix.name }}"
43
- CARGO_REGISTRIES_CRATES_IO_PROTOCOL : sparse
44
- HEAD_SHA : " ${{ github.event.pull_request.head.sha || github.sha }}"
45
- SCCACHE_BUCKET : rust-lang-ci-sccache2
46
- TOOLSTATE_REPO : " https://github.com/rust-lang-nursery/rust-toolstate"
47
- CACHE_DOMAIN : ci-caches.rust-lang.org
48
- if : " github.event_name == 'pull_request'"
49
- continue-on-error : " ${{ matrix.name == 'mingw-check-tidy' }}"
50
- strategy :
51
- matrix :
52
- include :
53
- - name : mingw-check
54
- os : ubuntu-20.04-4core-16gb
55
- env : {}
56
- - name : mingw-check-tidy
57
- os : ubuntu-20.04-4core-16gb
58
- env : {}
59
- - name : x86_64-gnu-llvm-15
60
- os : ubuntu-20.04-16core-64gb
61
- env : {}
62
- - name : x86_64-gnu-tools
63
- os : ubuntu-20.04-16core-64gb
64
- env : {}
65
- timeout-minutes : 600
66
- runs-on : " ${{ matrix.os }}"
67
- steps :
68
- - name : disable git crlf conversion
69
- run : git config --global core.autocrlf false
70
- - name : checkout the source code
71
- uses : actions/checkout@v4
72
- with :
73
- fetch-depth : 2
74
- - name : configure the PR in which the error message will be posted
75
- run : " echo \" [CI_PR_NUMBER=$num]\" "
76
- env :
77
- num : " ${{ github.event.number }}"
78
- if : " success() && !env.SKIP_JOB && github.event_name == 'pull_request'"
79
- - name : add extra environment variables
80
- run : src/ci/scripts/setup-environment.sh
81
- env :
82
- EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
83
- if : success() && !env.SKIP_JOB
84
- - name : decide whether to skip this job
85
- run : src/ci/scripts/should-skip-this.sh
86
- if : success() && !env.SKIP_JOB
87
- - name : ensure the channel matches the target branch
88
- run : src/ci/scripts/verify-channel.sh
89
- if : success() && !env.SKIP_JOB
90
- - name : collect CPU statistics
91
- run : src/ci/scripts/collect-cpu-stats.sh
92
- if : success() && !env.SKIP_JOB
93
- - name : show the current environment
94
- run : src/ci/scripts/dump-environment.sh
95
- if : success() && !env.SKIP_JOB
96
- - name : install sccache
97
- run : src/ci/scripts/install-sccache.sh
98
- if : success() && !env.SKIP_JOB
99
- - name : select Xcode
100
- run : src/ci/scripts/select-xcode.sh
101
- if : success() && !env.SKIP_JOB
102
- - name : install clang
103
- run : src/ci/scripts/install-clang.sh
104
- if : success() && !env.SKIP_JOB
105
- - name : install WIX
106
- run : src/ci/scripts/install-wix.sh
107
- if : success() && !env.SKIP_JOB
108
- - name : disable git crlf conversion
109
- run : src/ci/scripts/disable-git-crlf-conversion.sh
110
- if : success() && !env.SKIP_JOB
111
- - name : checkout submodules
112
- run : src/ci/scripts/checkout-submodules.sh
113
- if : success() && !env.SKIP_JOB
114
- - name : install MSYS2
115
- run : src/ci/scripts/install-msys2.sh
116
- if : success() && !env.SKIP_JOB
117
- - name : install MinGW
118
- run : src/ci/scripts/install-mingw.sh
119
- if : success() && !env.SKIP_JOB
120
- - name : install ninja
121
- run : src/ci/scripts/install-ninja.sh
122
- if : success() && !env.SKIP_JOB
123
- - name : enable ipv6 on Docker
124
- run : src/ci/scripts/enable-docker-ipv6.sh
125
- if : success() && !env.SKIP_JOB
126
- - name : disable git crlf conversion
127
- run : src/ci/scripts/disable-git-crlf-conversion.sh
128
- if : success() && !env.SKIP_JOB
129
- - name : ensure line endings are correct
130
- run : src/ci/scripts/verify-line-endings.sh
131
- if : success() && !env.SKIP_JOB
132
- - name : ensure backported commits are in upstream branches
133
- run : src/ci/scripts/verify-backported-commits.sh
134
- if : success() && !env.SKIP_JOB
135
- - name : ensure the stable version number is correct
136
- run : src/ci/scripts/verify-stable-version-number.sh
137
- if : success() && !env.SKIP_JOB
138
- - name : run the build
139
- run : src/ci/scripts/run-build-from-ci.sh
140
- env :
141
- AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
142
- AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
143
- TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
144
- if : success() && !env.SKIP_JOB
145
- - name : create github artifacts
146
- run : src/ci/scripts/create-doc-artifacts.sh
147
- if : success() && !env.SKIP_JOB
148
- - name : upload artifacts to github
149
- uses : actions/upload-artifact@v3
150
- with :
151
- name : " ${{ env.DOC_ARTIFACT_NAME }}"
152
- path : obj/artifacts/doc
153
- if-no-files-found : ignore
154
- retention-days : 5
155
- if : success() && !env.SKIP_JOB
156
- - name : upload artifacts to S3
157
- run : src/ci/scripts/upload-artifacts.sh
158
- env :
159
- AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
160
- AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
161
- if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
162
38
auto :
163
39
name : " auto - ${{ matrix.name }}"
164
40
env :
@@ -345,8 +221,8 @@ jobs:
345
221
os : macos-13
346
222
- name : dist-aarch64-apple
347
223
env :
348
- SCRIPT : " ./x.py dist bootstrap --include-default-paths --stage 2 "
349
- 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"
224
+ SCRIPT : " ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin "
225
+ RUST_CONFIGURE_ARGS : " --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin "
350
226
RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
351
227
SELECT_XCODE : /Applications/Xcode_13.4.1.app
352
228
USE_XCODE_CLANG : 1
@@ -356,8 +232,7 @@ jobs:
356
232
NO_DEBUG_ASSERTIONS : 1
357
233
NO_OVERFLOW_CHECKS : 1
358
234
DIST_REQUIRE_ALL_TOOLS : 1
359
- JEMALLOC_SYS_WITH_LG_PAGE : 14
360
- os : macos-13
235
+ os : macos-13-xlarge
361
236
- name : x86_64-msvc
362
237
env :
363
238
RUST_CONFIGURE_ARGS : " --build=x86_64-pc-windows-msvc --enable-profiler"
@@ -458,6 +333,9 @@ jobs:
458
333
- name : show the current environment
459
334
run : src/ci/scripts/dump-environment.sh
460
335
if : success() && !env.SKIP_JOB
336
+ - name : install awscli
337
+ run : src/ci/scripts/install-awscli.sh
338
+ if : success() && !env.SKIP_JOB
461
339
- name : install sccache
462
340
run : src/ci/scripts/install-sccache.sh
463
341
if : success() && !env.SKIP_JOB
@@ -544,9 +422,20 @@ jobs:
544
422
strategy :
545
423
matrix :
546
424
include :
547
- - name : dist-x86_64-linux
548
- os : ubuntu-20.04-16core-64gb
549
- env : {}
425
+ - name : dist-aarch64-apple
426
+ env :
427
+ SCRIPT : " ./x.py dist bootstrap --include-default-paths --host=aarch64-apple-darwin --target=aarch64-apple-darwin"
428
+ RUST_CONFIGURE_ARGS : " --enable-full-tools --enable-sanitizers --enable-profiler --set rust.jemalloc --set llvm.ninja=false --set rust.lto=thin"
429
+ RUSTC_RETRY_LINKER_ON_SEGFAULT : 1
430
+ SELECT_XCODE : /Applications/Xcode_13.4.1.app
431
+ USE_XCODE_CLANG : 1
432
+ MACOSX_DEPLOYMENT_TARGET : 11.0
433
+ MACOSX_STD_DEPLOYMENT_TARGET : 11.0
434
+ NO_LLVM_ASSERTIONS : 1
435
+ NO_DEBUG_ASSERTIONS : 1
436
+ NO_OVERFLOW_CHECKS : 1
437
+ DIST_REQUIRE_ALL_TOOLS : 1
438
+ os : macos-13-xlarge
550
439
timeout-minutes : 600
551
440
runs-on : " ${{ matrix.os }}"
552
441
steps :
@@ -578,6 +467,9 @@ jobs:
578
467
- name : show the current environment
579
468
run : src/ci/scripts/dump-environment.sh
580
469
if : success() && !env.SKIP_JOB
470
+ - name : install awscli
471
+ run : src/ci/scripts/install-awscli.sh
472
+ if : success() && !env.SKIP_JOB
581
473
- name : install sccache
582
474
run : src/ci/scripts/install-sccache.sh
583
475
if : success() && !env.SKIP_JOB
0 commit comments