@@ -24,6 +24,9 @@ name: CI
24
24
pull_request :
25
25
branches :
26
26
- " **"
27
+ defaults :
28
+ run :
29
+ shell : " python src/ci/exec-with-shell.py {0}"
27
30
jobs :
28
31
pr :
29
32
name : PR
34
37
if : " github.event_name == 'pull_request'"
35
38
strategy :
36
39
matrix :
37
- name :
38
- - mingw-check
39
- - x86_64-gnu-llvm-8
40
- - x86_64-gnu-tools
41
40
include :
42
41
- name : mingw-check
43
42
os : ubuntu-latest-xl
@@ -68,95 +67,74 @@ jobs:
68
67
run : src/ci/scripts/setup-environment.sh
69
68
env :
70
69
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
71
- shell : " python src/ci/exec-with-shell.py {0}"
72
70
if : success() && !env.SKIP_JOB
73
71
- name : decide whether to skip this job
74
72
run : src/ci/scripts/should-skip-this.sh
75
- shell : " python src/ci/exec-with-shell.py {0}"
76
73
if : success() && !env.SKIP_JOB
77
74
- name : collect CPU statistics
78
75
run : src/ci/scripts/collect-cpu-stats.sh
79
- shell : " python src/ci/exec-with-shell.py {0}"
80
76
if : success() && !env.SKIP_JOB
81
77
- name : show the current environment
82
78
run : src/ci/scripts/dump-environment.sh
83
- shell : " python src/ci/exec-with-shell.py {0}"
84
79
if : success() && !env.SKIP_JOB
85
80
- name : install awscli
86
81
run : src/ci/scripts/install-awscli.sh
87
- shell : " python src/ci/exec-with-shell.py {0}"
88
82
if : success() && !env.SKIP_JOB
89
83
- name : install sccache
90
84
run : src/ci/scripts/install-sccache.sh
91
- shell : " python src/ci/exec-with-shell.py {0}"
92
85
if : success() && !env.SKIP_JOB
93
86
- name : install clang
94
87
run : src/ci/scripts/install-clang.sh
95
- shell : " python src/ci/exec-with-shell.py {0}"
96
88
if : success() && !env.SKIP_JOB
97
89
- name : install WIX
98
90
run : src/ci/scripts/install-wix.sh
99
- shell : " python src/ci/exec-with-shell.py {0}"
100
91
if : success() && !env.SKIP_JOB
101
92
- name : install InnoSetup
102
93
run : src/ci/scripts/install-innosetup.sh
103
- shell : " python src/ci/exec-with-shell.py {0}"
104
94
if : success() && !env.SKIP_JOB
105
95
- name : ensure the build happens on a partition with enough space
106
96
run : src/ci/scripts/symlink-build-dir.sh
107
- shell : " python src/ci/exec-with-shell.py {0}"
108
97
if : success() && !env.SKIP_JOB
109
98
- name : disable git crlf conversion
110
99
run : src/ci/scripts/disable-git-crlf-conversion.sh
111
- shell : " python src/ci/exec-with-shell.py {0}"
112
100
if : success() && !env.SKIP_JOB
113
101
- name : install MSYS2
114
102
run : src/ci/scripts/install-msys2.sh
115
- shell : " python src/ci/exec-with-shell.py {0}"
116
103
if : success() && !env.SKIP_JOB
117
104
- name : install MSYS2 packages
118
105
run : src/ci/scripts/install-msys2-packages.sh
119
- shell : " python src/ci/exec-with-shell.py {0}"
120
106
if : success() && !env.SKIP_JOB
121
107
- name : install MinGW
122
108
run : src/ci/scripts/install-mingw.sh
123
- shell : " python src/ci/exec-with-shell.py {0}"
124
109
if : success() && !env.SKIP_JOB
125
110
- name : install ninja
126
111
run : src/ci/scripts/install-ninja.sh
127
- shell : " python src/ci/exec-with-shell.py {0}"
128
112
if : success() && !env.SKIP_JOB
129
113
- name : enable ipv6 on Docker
130
114
run : src/ci/scripts/enable-docker-ipv6.sh
131
- shell : " python src/ci/exec-with-shell.py {0}"
132
115
if : success() && !env.SKIP_JOB
133
116
- name : disable git crlf conversion
134
117
run : src/ci/scripts/disable-git-crlf-conversion.sh
135
- shell : " python src/ci/exec-with-shell.py {0}"
136
118
if : success() && !env.SKIP_JOB
137
119
- name : checkout submodules
138
120
run : src/ci/scripts/checkout-submodules.sh
139
- shell : " python src/ci/exec-with-shell.py {0}"
140
121
if : success() && !env.SKIP_JOB
141
122
- name : ensure line endings are correct
142
123
run : src/ci/scripts/verify-line-endings.sh
143
- shell : " python src/ci/exec-with-shell.py {0}"
144
124
if : success() && !env.SKIP_JOB
145
125
- name : run the build
146
126
run : src/ci/scripts/run-build-from-ci.sh
147
127
env :
148
128
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
149
129
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
150
130
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
151
- shell : " python src/ci/exec-with-shell.py {0}"
152
131
if : success() && !env.SKIP_JOB
153
132
- name : upload artifacts to S3
154
133
run : src/ci/scripts/upload-artifacts.sh
155
134
env :
156
135
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
157
136
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
158
137
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
159
- shell : " python src/ci/exec-with-shell.py {0}"
160
138
try :
161
139
name : try
162
140
env :
@@ -171,9 +149,6 @@ jobs:
171
149
if : " github.event_name == 'push' && github.ref == 'refs/heads/try' && github.repository == 'rust-lang-ci/rust'"
172
150
strategy :
173
151
matrix :
174
- name :
175
- - dist-x86_64-linux
176
- - dist-x86_64-linux-alt
177
152
include :
178
153
- name : dist-x86_64-linux
179
154
os : ubuntu-latest-xl
@@ -201,95 +176,74 @@ jobs:
201
176
run : src/ci/scripts/setup-environment.sh
202
177
env :
203
178
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
204
- shell : " python src/ci/exec-with-shell.py {0}"
205
179
if : success() && !env.SKIP_JOB
206
180
- name : decide whether to skip this job
207
181
run : src/ci/scripts/should-skip-this.sh
208
- shell : " python src/ci/exec-with-shell.py {0}"
209
182
if : success() && !env.SKIP_JOB
210
183
- name : collect CPU statistics
211
184
run : src/ci/scripts/collect-cpu-stats.sh
212
- shell : " python src/ci/exec-with-shell.py {0}"
213
185
if : success() && !env.SKIP_JOB
214
186
- name : show the current environment
215
187
run : src/ci/scripts/dump-environment.sh
216
- shell : " python src/ci/exec-with-shell.py {0}"
217
188
if : success() && !env.SKIP_JOB
218
189
- name : install awscli
219
190
run : src/ci/scripts/install-awscli.sh
220
- shell : " python src/ci/exec-with-shell.py {0}"
221
191
if : success() && !env.SKIP_JOB
222
192
- name : install sccache
223
193
run : src/ci/scripts/install-sccache.sh
224
- shell : " python src/ci/exec-with-shell.py {0}"
225
194
if : success() && !env.SKIP_JOB
226
195
- name : install clang
227
196
run : src/ci/scripts/install-clang.sh
228
- shell : " python src/ci/exec-with-shell.py {0}"
229
197
if : success() && !env.SKIP_JOB
230
198
- name : install WIX
231
199
run : src/ci/scripts/install-wix.sh
232
- shell : " python src/ci/exec-with-shell.py {0}"
233
200
if : success() && !env.SKIP_JOB
234
201
- name : install InnoSetup
235
202
run : src/ci/scripts/install-innosetup.sh
236
- shell : " python src/ci/exec-with-shell.py {0}"
237
203
if : success() && !env.SKIP_JOB
238
204
- name : ensure the build happens on a partition with enough space
239
205
run : src/ci/scripts/symlink-build-dir.sh
240
- shell : " python src/ci/exec-with-shell.py {0}"
241
206
if : success() && !env.SKIP_JOB
242
207
- name : disable git crlf conversion
243
208
run : src/ci/scripts/disable-git-crlf-conversion.sh
244
- shell : " python src/ci/exec-with-shell.py {0}"
245
209
if : success() && !env.SKIP_JOB
246
210
- name : install MSYS2
247
211
run : src/ci/scripts/install-msys2.sh
248
- shell : " python src/ci/exec-with-shell.py {0}"
249
212
if : success() && !env.SKIP_JOB
250
213
- name : install MSYS2 packages
251
214
run : src/ci/scripts/install-msys2-packages.sh
252
- shell : " python src/ci/exec-with-shell.py {0}"
253
215
if : success() && !env.SKIP_JOB
254
216
- name : install MinGW
255
217
run : src/ci/scripts/install-mingw.sh
256
- shell : " python src/ci/exec-with-shell.py {0}"
257
218
if : success() && !env.SKIP_JOB
258
219
- name : install ninja
259
220
run : src/ci/scripts/install-ninja.sh
260
- shell : " python src/ci/exec-with-shell.py {0}"
261
221
if : success() && !env.SKIP_JOB
262
222
- name : enable ipv6 on Docker
263
223
run : src/ci/scripts/enable-docker-ipv6.sh
264
- shell : " python src/ci/exec-with-shell.py {0}"
265
224
if : success() && !env.SKIP_JOB
266
225
- name : disable git crlf conversion
267
226
run : src/ci/scripts/disable-git-crlf-conversion.sh
268
- shell : " python src/ci/exec-with-shell.py {0}"
269
227
if : success() && !env.SKIP_JOB
270
228
- name : checkout submodules
271
229
run : src/ci/scripts/checkout-submodules.sh
272
- shell : " python src/ci/exec-with-shell.py {0}"
273
230
if : success() && !env.SKIP_JOB
274
231
- name : ensure line endings are correct
275
232
run : src/ci/scripts/verify-line-endings.sh
276
- shell : " python src/ci/exec-with-shell.py {0}"
277
233
if : success() && !env.SKIP_JOB
278
234
- name : run the build
279
235
run : src/ci/scripts/run-build-from-ci.sh
280
236
env :
281
237
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
282
238
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
283
239
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
284
- shell : " python src/ci/exec-with-shell.py {0}"
285
240
if : success() && !env.SKIP_JOB
286
241
- name : upload artifacts to S3
287
242
run : src/ci/scripts/upload-artifacts.sh
288
243
env :
289
244
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
290
245
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
291
246
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
292
- shell : " python src/ci/exec-with-shell.py {0}"
293
247
auto :
294
248
name : auto
295
249
env :
@@ -304,64 +258,6 @@ jobs:
304
258
if : " github.event_name == 'push' && github.ref == 'refs/heads/auto' && github.repository == 'rust-lang-ci/rust'"
305
259
strategy :
306
260
matrix :
307
- name :
308
- - arm-android
309
- - armhf-gnu
310
- - dist-aarch64-linux
311
- - dist-android
312
- - dist-arm-linux
313
- - dist-armhf-linux
314
- - dist-armv7-linux
315
- - dist-i586-gnu-i586-i686-musl
316
- - dist-i686-freebsd
317
- - dist-i686-linux
318
- - dist-i686-mingw
319
- - dist-i686-msvc
320
- - dist-mips-linux
321
- - dist-mips64-linux
322
- - dist-mips64el-linux
323
- - dist-mipsel-linux
324
- - dist-powerpc-linux
325
- - dist-powerpc64-linux
326
- - dist-powerpc64le-linux
327
- - dist-s390x-linux
328
- - dist-various-1
329
- - dist-various-2
330
- - dist-x86_64-apple
331
- - dist-x86_64-apple-alt
332
- - dist-x86_64-freebsd
333
- - dist-x86_64-linux
334
- - dist-x86_64-linux-alt
335
- - dist-x86_64-mingw
336
- - dist-x86_64-msvc
337
- - dist-x86_64-msvc-alt
338
- - dist-x86_64-musl
339
- - dist-x86_64-netbsd
340
- - i686-gnu
341
- - i686-gnu-nopt
342
- - i686-mingw-1
343
- - i686-mingw-2
344
- - i686-msvc-1
345
- - i686-msvc-2
346
- - mingw-check
347
- - test-various
348
- - wasm32
349
- - x86_64-apple
350
- - x86_64-gnu
351
- - x86_64-gnu-aux
352
- - x86_64-gnu-debug
353
- - x86_64-gnu-distcheck
354
- - x86_64-gnu-full-bootstrap
355
- - x86_64-gnu-llvm-8
356
- - x86_64-gnu-nopt
357
- - x86_64-gnu-tools
358
- - x86_64-mingw-1
359
- - x86_64-mingw-2
360
- - x86_64-msvc-1
361
- - x86_64-msvc-2
362
- - x86_64-msvc-aux
363
- - x86_64-msvc-cargo
364
- - x86_64-msvc-tools
365
261
include :
366
262
- name : arm-android
367
263
os : ubuntu-latest-xl
@@ -631,95 +527,74 @@ jobs:
631
527
run : src/ci/scripts/setup-environment.sh
632
528
env :
633
529
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
634
- shell : " python src/ci/exec-with-shell.py {0}"
635
530
if : success() && !env.SKIP_JOB
636
531
- name : decide whether to skip this job
637
532
run : src/ci/scripts/should-skip-this.sh
638
- shell : " python src/ci/exec-with-shell.py {0}"
639
533
if : success() && !env.SKIP_JOB
640
534
- name : collect CPU statistics
641
535
run : src/ci/scripts/collect-cpu-stats.sh
642
- shell : " python src/ci/exec-with-shell.py {0}"
643
536
if : success() && !env.SKIP_JOB
644
537
- name : show the current environment
645
538
run : src/ci/scripts/dump-environment.sh
646
- shell : " python src/ci/exec-with-shell.py {0}"
647
539
if : success() && !env.SKIP_JOB
648
540
- name : install awscli
649
541
run : src/ci/scripts/install-awscli.sh
650
- shell : " python src/ci/exec-with-shell.py {0}"
651
542
if : success() && !env.SKIP_JOB
652
543
- name : install sccache
653
544
run : src/ci/scripts/install-sccache.sh
654
- shell : " python src/ci/exec-with-shell.py {0}"
655
545
if : success() && !env.SKIP_JOB
656
546
- name : install clang
657
547
run : src/ci/scripts/install-clang.sh
658
- shell : " python src/ci/exec-with-shell.py {0}"
659
548
if : success() && !env.SKIP_JOB
660
549
- name : install WIX
661
550
run : src/ci/scripts/install-wix.sh
662
- shell : " python src/ci/exec-with-shell.py {0}"
663
551
if : success() && !env.SKIP_JOB
664
552
- name : install InnoSetup
665
553
run : src/ci/scripts/install-innosetup.sh
666
- shell : " python src/ci/exec-with-shell.py {0}"
667
554
if : success() && !env.SKIP_JOB
668
555
- name : ensure the build happens on a partition with enough space
669
556
run : src/ci/scripts/symlink-build-dir.sh
670
- shell : " python src/ci/exec-with-shell.py {0}"
671
557
if : success() && !env.SKIP_JOB
672
558
- name : disable git crlf conversion
673
559
run : src/ci/scripts/disable-git-crlf-conversion.sh
674
- shell : " python src/ci/exec-with-shell.py {0}"
675
560
if : success() && !env.SKIP_JOB
676
561
- name : install MSYS2
677
562
run : src/ci/scripts/install-msys2.sh
678
- shell : " python src/ci/exec-with-shell.py {0}"
679
563
if : success() && !env.SKIP_JOB
680
564
- name : install MSYS2 packages
681
565
run : src/ci/scripts/install-msys2-packages.sh
682
- shell : " python src/ci/exec-with-shell.py {0}"
683
566
if : success() && !env.SKIP_JOB
684
567
- name : install MinGW
685
568
run : src/ci/scripts/install-mingw.sh
686
- shell : " python src/ci/exec-with-shell.py {0}"
687
569
if : success() && !env.SKIP_JOB
688
570
- name : install ninja
689
571
run : src/ci/scripts/install-ninja.sh
690
- shell : " python src/ci/exec-with-shell.py {0}"
691
572
if : success() && !env.SKIP_JOB
692
573
- name : enable ipv6 on Docker
693
574
run : src/ci/scripts/enable-docker-ipv6.sh
694
- shell : " python src/ci/exec-with-shell.py {0}"
695
575
if : success() && !env.SKIP_JOB
696
576
- name : disable git crlf conversion
697
577
run : src/ci/scripts/disable-git-crlf-conversion.sh
698
- shell : " python src/ci/exec-with-shell.py {0}"
699
578
if : success() && !env.SKIP_JOB
700
579
- name : checkout submodules
701
580
run : src/ci/scripts/checkout-submodules.sh
702
- shell : " python src/ci/exec-with-shell.py {0}"
703
581
if : success() && !env.SKIP_JOB
704
582
- name : ensure line endings are correct
705
583
run : src/ci/scripts/verify-line-endings.sh
706
- shell : " python src/ci/exec-with-shell.py {0}"
707
584
if : success() && !env.SKIP_JOB
708
585
- name : run the build
709
586
run : src/ci/scripts/run-build-from-ci.sh
710
587
env :
711
588
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
712
589
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
713
590
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
714
- shell : " python src/ci/exec-with-shell.py {0}"
715
591
if : success() && !env.SKIP_JOB
716
592
- name : upload artifacts to S3
717
593
run : src/ci/scripts/upload-artifacts.sh
718
594
env :
719
595
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
720
596
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
721
597
if : " success() && !env.SKIP_JOB && (github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1')"
722
- shell : " python src/ci/exec-with-shell.py {0}"
723
598
master :
724
599
name : master
725
600
runs-on : ubuntu-latest
@@ -741,7 +616,6 @@ jobs:
741
616
run : src/ci/publish_toolstate.sh
742
617
env :
743
618
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
744
- shell : " python src/ci/exec-with-shell.py {0}"
745
619
if : success() && !env.SKIP_JOB
746
620
try-success :
747
621
needs :
0 commit comments