@@ -51,10 +51,12 @@ jobs:
51
51
os : ubuntu-latest-xl
52
52
timeout-minutes : 600
53
53
runs-on : " ${{ matrix.os }}"
54
+ defaults :
55
+ run :
56
+ shell : bash
54
57
steps :
55
58
- name : disable git crlf conversion
56
59
run : git config --global core.autocrlf false
57
- shell : bash
58
60
- name : checkout the source code
59
61
uses : actions/checkout@v1
60
62
with :
@@ -66,91 +68,72 @@ jobs:
66
68
if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
67
69
- name : add extra environment variables
68
70
run : src/ci/scripts/setup-environment.sh
69
- shell : bash
70
71
env :
71
72
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
72
73
if : success() && !env.SKIP_JOB
73
74
- name : decide whether to skip this job
74
75
run : src/ci/scripts/should-skip-this.sh
75
- shell : bash
76
76
if : success() && !env.SKIP_JOB
77
77
- name : collect CPU statistics
78
78
run : src/ci/scripts/collect-cpu-stats.sh
79
- shell : bash
80
79
if : success() && !env.SKIP_JOB
81
80
- name : show the current environment
82
81
run : src/ci/scripts/dump-environment.sh
83
- shell : bash
84
82
if : success() && !env.SKIP_JOB
85
83
- name : install awscli
86
84
run : src/ci/scripts/install-awscli.sh
87
- shell : bash
88
85
if : success() && !env.SKIP_JOB
89
86
- name : install sccache
90
87
run : src/ci/scripts/install-sccache.sh
91
- shell : bash
92
88
if : success() && !env.SKIP_JOB
93
89
- name : install clang
94
90
run : src/ci/scripts/install-clang.sh
95
- shell : bash
96
91
if : success() && !env.SKIP_JOB
97
92
- name : install WIX
98
93
run : src/ci/scripts/install-wix.sh
99
- shell : bash
100
94
if : success() && !env.SKIP_JOB
101
95
- name : install InnoSetup
102
96
run : src/ci/scripts/install-innosetup.sh
103
97
if : success() && !env.SKIP_JOB
104
98
- name : ensure the build happens on a partition with enough space
105
99
run : src/ci/scripts/symlink-build-dir.sh
106
- shell : bash
107
100
if : success() && !env.SKIP_JOB
108
101
- name : disable git crlf conversion
109
102
run : src/ci/scripts/disable-git-crlf-conversion.sh
110
- shell : bash
111
103
if : success() && !env.SKIP_JOB
112
104
- name : install MSYS2
113
105
run : src/ci/scripts/install-msys2.sh
114
- shell : bash
115
106
if : success() && !env.SKIP_JOB
116
107
- name : install MSYS2 packages
117
108
run : src/ci/scripts/install-msys2-packages.sh
118
109
if : success() && !env.SKIP_JOB
119
110
- name : install MinGW
120
111
run : src/ci/scripts/install-mingw.sh
121
- shell : bash
122
112
if : success() && !env.SKIP_JOB
123
113
- name : install ninja
124
114
run : src/ci/scripts/install-ninja.sh
125
- shell : bash
126
115
if : success() && !env.SKIP_JOB
127
116
- name : enable ipv6 on Docker
128
117
run : src/ci/scripts/enable-docker-ipv6.sh
129
- shell : bash
130
118
if : success() && !env.SKIP_JOB
131
119
- name : disable git crlf conversion
132
120
run : src/ci/scripts/disable-git-crlf-conversion.sh
133
- shell : bash
134
121
if : success() && !env.SKIP_JOB
135
122
- name : checkout submodules
136
123
run : src/ci/scripts/checkout-submodules.sh
137
- shell : bash
138
124
if : success() && !env.SKIP_JOB
139
125
- name : ensure line endings are correct
140
126
run : src/ci/scripts/verify-line-endings.sh
141
- shell : bash
142
127
if : success() && !env.SKIP_JOB
143
128
- name : run the build
144
129
run : src/ci/scripts/run-build-from-ci.sh
145
- shell : bash
146
130
env :
147
131
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
148
132
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
149
133
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
150
134
if : success() && !env.SKIP_JOB
151
135
- name : upload artifacts to S3
152
136
run : src/ci/scripts/upload-artifacts.sh
153
- shell : bash
154
137
env :
155
138
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
156
139
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
@@ -180,10 +163,12 @@ jobs:
180
163
os : ubuntu-latest-xl
181
164
timeout-minutes : 600
182
165
runs-on : " ${{ matrix.os }}"
166
+ defaults :
167
+ run :
168
+ shell : bash
183
169
steps :
184
170
- name : disable git crlf conversion
185
171
run : git config --global core.autocrlf false
186
- shell : bash
187
172
- name : checkout the source code
188
173
uses : actions/checkout@v1
189
174
with :
@@ -195,91 +180,72 @@ jobs:
195
180
if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
196
181
- name : add extra environment variables
197
182
run : src/ci/scripts/setup-environment.sh
198
- shell : bash
199
183
env :
200
184
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
201
185
if : success() && !env.SKIP_JOB
202
186
- name : decide whether to skip this job
203
187
run : src/ci/scripts/should-skip-this.sh
204
- shell : bash
205
188
if : success() && !env.SKIP_JOB
206
189
- name : collect CPU statistics
207
190
run : src/ci/scripts/collect-cpu-stats.sh
208
- shell : bash
209
191
if : success() && !env.SKIP_JOB
210
192
- name : show the current environment
211
193
run : src/ci/scripts/dump-environment.sh
212
- shell : bash
213
194
if : success() && !env.SKIP_JOB
214
195
- name : install awscli
215
196
run : src/ci/scripts/install-awscli.sh
216
- shell : bash
217
197
if : success() && !env.SKIP_JOB
218
198
- name : install sccache
219
199
run : src/ci/scripts/install-sccache.sh
220
- shell : bash
221
200
if : success() && !env.SKIP_JOB
222
201
- name : install clang
223
202
run : src/ci/scripts/install-clang.sh
224
- shell : bash
225
203
if : success() && !env.SKIP_JOB
226
204
- name : install WIX
227
205
run : src/ci/scripts/install-wix.sh
228
- shell : bash
229
206
if : success() && !env.SKIP_JOB
230
207
- name : install InnoSetup
231
208
run : src/ci/scripts/install-innosetup.sh
232
209
if : success() && !env.SKIP_JOB
233
210
- name : ensure the build happens on a partition with enough space
234
211
run : src/ci/scripts/symlink-build-dir.sh
235
- shell : bash
236
212
if : success() && !env.SKIP_JOB
237
213
- name : disable git crlf conversion
238
214
run : src/ci/scripts/disable-git-crlf-conversion.sh
239
- shell : bash
240
215
if : success() && !env.SKIP_JOB
241
216
- name : install MSYS2
242
217
run : src/ci/scripts/install-msys2.sh
243
- shell : bash
244
218
if : success() && !env.SKIP_JOB
245
219
- name : install MSYS2 packages
246
220
run : src/ci/scripts/install-msys2-packages.sh
247
221
if : success() && !env.SKIP_JOB
248
222
- name : install MinGW
249
223
run : src/ci/scripts/install-mingw.sh
250
- shell : bash
251
224
if : success() && !env.SKIP_JOB
252
225
- name : install ninja
253
226
run : src/ci/scripts/install-ninja.sh
254
- shell : bash
255
227
if : success() && !env.SKIP_JOB
256
228
- name : enable ipv6 on Docker
257
229
run : src/ci/scripts/enable-docker-ipv6.sh
258
- shell : bash
259
230
if : success() && !env.SKIP_JOB
260
231
- name : disable git crlf conversion
261
232
run : src/ci/scripts/disable-git-crlf-conversion.sh
262
- shell : bash
263
233
if : success() && !env.SKIP_JOB
264
234
- name : checkout submodules
265
235
run : src/ci/scripts/checkout-submodules.sh
266
- shell : bash
267
236
if : success() && !env.SKIP_JOB
268
237
- name : ensure line endings are correct
269
238
run : src/ci/scripts/verify-line-endings.sh
270
- shell : bash
271
239
if : success() && !env.SKIP_JOB
272
240
- name : run the build
273
241
run : src/ci/scripts/run-build-from-ci.sh
274
- shell : bash
275
242
env :
276
243
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
277
244
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
278
245
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
279
246
if : success() && !env.SKIP_JOB
280
247
- name : upload artifacts to S3
281
248
run : src/ci/scripts/upload-artifacts.sh
282
- shell : bash
283
249
env :
284
250
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
285
251
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
@@ -551,10 +517,12 @@ jobs:
551
517
os : windows-latest-xl
552
518
timeout-minutes : 600
553
519
runs-on : " ${{ matrix.os }}"
520
+ defaults :
521
+ run :
522
+ shell : bash
554
523
steps :
555
524
- name : disable git crlf conversion
556
525
run : git config --global core.autocrlf false
557
- shell : bash
558
526
- name : checkout the source code
559
527
uses : actions/checkout@v1
560
528
with :
@@ -566,91 +534,72 @@ jobs:
566
534
if : " success() && !env.SKIP_JOB && github.ref != 'refs/heads/try'"
567
535
- name : add extra environment variables
568
536
run : src/ci/scripts/setup-environment.sh
569
- shell : bash
570
537
env :
571
538
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
572
539
if : success() && !env.SKIP_JOB
573
540
- name : decide whether to skip this job
574
541
run : src/ci/scripts/should-skip-this.sh
575
- shell : bash
576
542
if : success() && !env.SKIP_JOB
577
543
- name : collect CPU statistics
578
544
run : src/ci/scripts/collect-cpu-stats.sh
579
- shell : bash
580
545
if : success() && !env.SKIP_JOB
581
546
- name : show the current environment
582
547
run : src/ci/scripts/dump-environment.sh
583
- shell : bash
584
548
if : success() && !env.SKIP_JOB
585
549
- name : install awscli
586
550
run : src/ci/scripts/install-awscli.sh
587
- shell : bash
588
551
if : success() && !env.SKIP_JOB
589
552
- name : install sccache
590
553
run : src/ci/scripts/install-sccache.sh
591
- shell : bash
592
554
if : success() && !env.SKIP_JOB
593
555
- name : install clang
594
556
run : src/ci/scripts/install-clang.sh
595
- shell : bash
596
557
if : success() && !env.SKIP_JOB
597
558
- name : install WIX
598
559
run : src/ci/scripts/install-wix.sh
599
- shell : bash
600
560
if : success() && !env.SKIP_JOB
601
561
- name : install InnoSetup
602
562
run : src/ci/scripts/install-innosetup.sh
603
563
if : success() && !env.SKIP_JOB
604
564
- name : ensure the build happens on a partition with enough space
605
565
run : src/ci/scripts/symlink-build-dir.sh
606
- shell : bash
607
566
if : success() && !env.SKIP_JOB
608
567
- name : disable git crlf conversion
609
568
run : src/ci/scripts/disable-git-crlf-conversion.sh
610
- shell : bash
611
569
if : success() && !env.SKIP_JOB
612
570
- name : install MSYS2
613
571
run : src/ci/scripts/install-msys2.sh
614
- shell : bash
615
572
if : success() && !env.SKIP_JOB
616
573
- name : install MSYS2 packages
617
574
run : src/ci/scripts/install-msys2-packages.sh
618
575
if : success() && !env.SKIP_JOB
619
576
- name : install MinGW
620
577
run : src/ci/scripts/install-mingw.sh
621
- shell : bash
622
578
if : success() && !env.SKIP_JOB
623
579
- name : install ninja
624
580
run : src/ci/scripts/install-ninja.sh
625
- shell : bash
626
581
if : success() && !env.SKIP_JOB
627
582
- name : enable ipv6 on Docker
628
583
run : src/ci/scripts/enable-docker-ipv6.sh
629
- shell : bash
630
584
if : success() && !env.SKIP_JOB
631
585
- name : disable git crlf conversion
632
586
run : src/ci/scripts/disable-git-crlf-conversion.sh
633
- shell : bash
634
587
if : success() && !env.SKIP_JOB
635
588
- name : checkout submodules
636
589
run : src/ci/scripts/checkout-submodules.sh
637
- shell : bash
638
590
if : success() && !env.SKIP_JOB
639
591
- name : ensure line endings are correct
640
592
run : src/ci/scripts/verify-line-endings.sh
641
- shell : bash
642
593
if : success() && !env.SKIP_JOB
643
594
- name : run the build
644
595
run : src/ci/scripts/run-build-from-ci.sh
645
- shell : bash
646
596
env :
647
597
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
648
598
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
649
599
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
650
600
if : success() && !env.SKIP_JOB
651
601
- name : upload artifacts to S3
652
602
run : src/ci/scripts/upload-artifacts.sh
653
- shell : bash
654
603
env :
655
604
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
656
605
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
0 commit comments