@@ -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
@@ -68,95 +71,74 @@ jobs:
68
71
run : src/ci/scripts/setup-environment.sh
69
72
env :
70
73
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
71
- shell : " python src/ci/exec-with-shell.py {0}"
72
74
if : success() && !env.SKIP_JOB
73
75
- name : decide whether to skip this job
74
76
run : src/ci/scripts/should-skip-this.sh
75
- shell : " python src/ci/exec-with-shell.py {0}"
76
77
if : success() && !env.SKIP_JOB
77
78
- name : collect CPU statistics
78
79
run : src/ci/scripts/collect-cpu-stats.sh
79
- shell : " python src/ci/exec-with-shell.py {0}"
80
80
if : success() && !env.SKIP_JOB
81
81
- name : show the current environment
82
82
run : src/ci/scripts/dump-environment.sh
83
- shell : " python src/ci/exec-with-shell.py {0}"
84
83
if : success() && !env.SKIP_JOB
85
84
- name : install awscli
86
85
run : src/ci/scripts/install-awscli.sh
87
- shell : " python src/ci/exec-with-shell.py {0}"
88
86
if : success() && !env.SKIP_JOB
89
87
- name : install sccache
90
88
run : src/ci/scripts/install-sccache.sh
91
- shell : " python src/ci/exec-with-shell.py {0}"
92
89
if : success() && !env.SKIP_JOB
93
90
- name : install clang
94
91
run : src/ci/scripts/install-clang.sh
95
- shell : " python src/ci/exec-with-shell.py {0}"
96
92
if : success() && !env.SKIP_JOB
97
93
- name : install WIX
98
94
run : src/ci/scripts/install-wix.sh
99
- shell : " python src/ci/exec-with-shell.py {0}"
100
95
if : success() && !env.SKIP_JOB
101
96
- name : install InnoSetup
102
97
run : src/ci/scripts/install-innosetup.sh
103
- shell : " python src/ci/exec-with-shell.py {0}"
104
98
if : success() && !env.SKIP_JOB
105
99
- name : ensure the build happens on a partition with enough space
106
100
run : src/ci/scripts/symlink-build-dir.sh
107
- shell : " python src/ci/exec-with-shell.py {0}"
108
101
if : success() && !env.SKIP_JOB
109
102
- name : disable git crlf conversion
110
103
run : src/ci/scripts/disable-git-crlf-conversion.sh
111
- shell : " python src/ci/exec-with-shell.py {0}"
112
104
if : success() && !env.SKIP_JOB
113
105
- name : install MSYS2
114
106
run : src/ci/scripts/install-msys2.sh
115
- shell : " python src/ci/exec-with-shell.py {0}"
116
107
if : success() && !env.SKIP_JOB
117
108
- name : install MSYS2 packages
118
109
run : src/ci/scripts/install-msys2-packages.sh
119
- shell : " python src/ci/exec-with-shell.py {0}"
120
110
if : success() && !env.SKIP_JOB
121
111
- name : install MinGW
122
112
run : src/ci/scripts/install-mingw.sh
123
- shell : " python src/ci/exec-with-shell.py {0}"
124
113
if : success() && !env.SKIP_JOB
125
114
- name : install ninja
126
115
run : src/ci/scripts/install-ninja.sh
127
- shell : " python src/ci/exec-with-shell.py {0}"
128
116
if : success() && !env.SKIP_JOB
129
117
- name : enable ipv6 on Docker
130
118
run : src/ci/scripts/enable-docker-ipv6.sh
131
- shell : " python src/ci/exec-with-shell.py {0}"
132
119
if : success() && !env.SKIP_JOB
133
120
- name : disable git crlf conversion
134
121
run : src/ci/scripts/disable-git-crlf-conversion.sh
135
- shell : " python src/ci/exec-with-shell.py {0}"
136
122
if : success() && !env.SKIP_JOB
137
123
- name : checkout submodules
138
124
run : src/ci/scripts/checkout-submodules.sh
139
- shell : " python src/ci/exec-with-shell.py {0}"
140
125
if : success() && !env.SKIP_JOB
141
126
- name : ensure line endings are correct
142
127
run : src/ci/scripts/verify-line-endings.sh
143
- shell : " python src/ci/exec-with-shell.py {0}"
144
128
if : success() && !env.SKIP_JOB
145
129
- name : run the build
146
130
run : src/ci/scripts/run-build-from-ci.sh
147
131
env :
148
132
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
149
133
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
150
134
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
151
- shell : " python src/ci/exec-with-shell.py {0}"
152
135
if : success() && !env.SKIP_JOB
153
136
- name : upload artifacts to S3
154
137
run : src/ci/scripts/upload-artifacts.sh
155
138
env :
156
139
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
157
140
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
158
141
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
142
try :
161
143
name : try
162
144
env :
@@ -201,95 +183,74 @@ jobs:
201
183
run : src/ci/scripts/setup-environment.sh
202
184
env :
203
185
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
204
- shell : " python src/ci/exec-with-shell.py {0}"
205
186
if : success() && !env.SKIP_JOB
206
187
- name : decide whether to skip this job
207
188
run : src/ci/scripts/should-skip-this.sh
208
- shell : " python src/ci/exec-with-shell.py {0}"
209
189
if : success() && !env.SKIP_JOB
210
190
- name : collect CPU statistics
211
191
run : src/ci/scripts/collect-cpu-stats.sh
212
- shell : " python src/ci/exec-with-shell.py {0}"
213
192
if : success() && !env.SKIP_JOB
214
193
- name : show the current environment
215
194
run : src/ci/scripts/dump-environment.sh
216
- shell : " python src/ci/exec-with-shell.py {0}"
217
195
if : success() && !env.SKIP_JOB
218
196
- name : install awscli
219
197
run : src/ci/scripts/install-awscli.sh
220
- shell : " python src/ci/exec-with-shell.py {0}"
221
198
if : success() && !env.SKIP_JOB
222
199
- name : install sccache
223
200
run : src/ci/scripts/install-sccache.sh
224
- shell : " python src/ci/exec-with-shell.py {0}"
225
201
if : success() && !env.SKIP_JOB
226
202
- name : install clang
227
203
run : src/ci/scripts/install-clang.sh
228
- shell : " python src/ci/exec-with-shell.py {0}"
229
204
if : success() && !env.SKIP_JOB
230
205
- name : install WIX
231
206
run : src/ci/scripts/install-wix.sh
232
- shell : " python src/ci/exec-with-shell.py {0}"
233
207
if : success() && !env.SKIP_JOB
234
208
- name : install InnoSetup
235
209
run : src/ci/scripts/install-innosetup.sh
236
- shell : " python src/ci/exec-with-shell.py {0}"
237
210
if : success() && !env.SKIP_JOB
238
211
- name : ensure the build happens on a partition with enough space
239
212
run : src/ci/scripts/symlink-build-dir.sh
240
- shell : " python src/ci/exec-with-shell.py {0}"
241
213
if : success() && !env.SKIP_JOB
242
214
- name : disable git crlf conversion
243
215
run : src/ci/scripts/disable-git-crlf-conversion.sh
244
- shell : " python src/ci/exec-with-shell.py {0}"
245
216
if : success() && !env.SKIP_JOB
246
217
- name : install MSYS2
247
218
run : src/ci/scripts/install-msys2.sh
248
- shell : " python src/ci/exec-with-shell.py {0}"
249
219
if : success() && !env.SKIP_JOB
250
220
- name : install MSYS2 packages
251
221
run : src/ci/scripts/install-msys2-packages.sh
252
- shell : " python src/ci/exec-with-shell.py {0}"
253
222
if : success() && !env.SKIP_JOB
254
223
- name : install MinGW
255
224
run : src/ci/scripts/install-mingw.sh
256
- shell : " python src/ci/exec-with-shell.py {0}"
257
225
if : success() && !env.SKIP_JOB
258
226
- name : install ninja
259
227
run : src/ci/scripts/install-ninja.sh
260
- shell : " python src/ci/exec-with-shell.py {0}"
261
228
if : success() && !env.SKIP_JOB
262
229
- name : enable ipv6 on Docker
263
230
run : src/ci/scripts/enable-docker-ipv6.sh
264
- shell : " python src/ci/exec-with-shell.py {0}"
265
231
if : success() && !env.SKIP_JOB
266
232
- name : disable git crlf conversion
267
233
run : src/ci/scripts/disable-git-crlf-conversion.sh
268
- shell : " python src/ci/exec-with-shell.py {0}"
269
234
if : success() && !env.SKIP_JOB
270
235
- name : checkout submodules
271
236
run : src/ci/scripts/checkout-submodules.sh
272
- shell : " python src/ci/exec-with-shell.py {0}"
273
237
if : success() && !env.SKIP_JOB
274
238
- name : ensure line endings are correct
275
239
run : src/ci/scripts/verify-line-endings.sh
276
- shell : " python src/ci/exec-with-shell.py {0}"
277
240
if : success() && !env.SKIP_JOB
278
241
- name : run the build
279
242
run : src/ci/scripts/run-build-from-ci.sh
280
243
env :
281
244
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
282
245
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
283
246
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
284
- shell : " python src/ci/exec-with-shell.py {0}"
285
247
if : success() && !env.SKIP_JOB
286
248
- name : upload artifacts to S3
287
249
run : src/ci/scripts/upload-artifacts.sh
288
250
env :
289
251
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
290
252
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
291
253
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
254
auto :
294
255
name : auto
295
256
env :
@@ -631,95 +592,74 @@ jobs:
631
592
run : src/ci/scripts/setup-environment.sh
632
593
env :
633
594
EXTRA_VARIABLES : " ${{ toJson(matrix.env) }}"
634
- shell : " python src/ci/exec-with-shell.py {0}"
635
595
if : success() && !env.SKIP_JOB
636
596
- name : decide whether to skip this job
637
597
run : src/ci/scripts/should-skip-this.sh
638
- shell : " python src/ci/exec-with-shell.py {0}"
639
598
if : success() && !env.SKIP_JOB
640
599
- name : collect CPU statistics
641
600
run : src/ci/scripts/collect-cpu-stats.sh
642
- shell : " python src/ci/exec-with-shell.py {0}"
643
601
if : success() && !env.SKIP_JOB
644
602
- name : show the current environment
645
603
run : src/ci/scripts/dump-environment.sh
646
- shell : " python src/ci/exec-with-shell.py {0}"
647
604
if : success() && !env.SKIP_JOB
648
605
- name : install awscli
649
606
run : src/ci/scripts/install-awscli.sh
650
- shell : " python src/ci/exec-with-shell.py {0}"
651
607
if : success() && !env.SKIP_JOB
652
608
- name : install sccache
653
609
run : src/ci/scripts/install-sccache.sh
654
- shell : " python src/ci/exec-with-shell.py {0}"
655
610
if : success() && !env.SKIP_JOB
656
611
- name : install clang
657
612
run : src/ci/scripts/install-clang.sh
658
- shell : " python src/ci/exec-with-shell.py {0}"
659
613
if : success() && !env.SKIP_JOB
660
614
- name : install WIX
661
615
run : src/ci/scripts/install-wix.sh
662
- shell : " python src/ci/exec-with-shell.py {0}"
663
616
if : success() && !env.SKIP_JOB
664
617
- name : install InnoSetup
665
618
run : src/ci/scripts/install-innosetup.sh
666
- shell : " python src/ci/exec-with-shell.py {0}"
667
619
if : success() && !env.SKIP_JOB
668
620
- name : ensure the build happens on a partition with enough space
669
621
run : src/ci/scripts/symlink-build-dir.sh
670
- shell : " python src/ci/exec-with-shell.py {0}"
671
622
if : success() && !env.SKIP_JOB
672
623
- name : disable git crlf conversion
673
624
run : src/ci/scripts/disable-git-crlf-conversion.sh
674
- shell : " python src/ci/exec-with-shell.py {0}"
675
625
if : success() && !env.SKIP_JOB
676
626
- name : install MSYS2
677
627
run : src/ci/scripts/install-msys2.sh
678
- shell : " python src/ci/exec-with-shell.py {0}"
679
628
if : success() && !env.SKIP_JOB
680
629
- name : install MSYS2 packages
681
630
run : src/ci/scripts/install-msys2-packages.sh
682
- shell : " python src/ci/exec-with-shell.py {0}"
683
631
if : success() && !env.SKIP_JOB
684
632
- name : install MinGW
685
633
run : src/ci/scripts/install-mingw.sh
686
- shell : " python src/ci/exec-with-shell.py {0}"
687
634
if : success() && !env.SKIP_JOB
688
635
- name : install ninja
689
636
run : src/ci/scripts/install-ninja.sh
690
- shell : " python src/ci/exec-with-shell.py {0}"
691
637
if : success() && !env.SKIP_JOB
692
638
- name : enable ipv6 on Docker
693
639
run : src/ci/scripts/enable-docker-ipv6.sh
694
- shell : " python src/ci/exec-with-shell.py {0}"
695
640
if : success() && !env.SKIP_JOB
696
641
- name : disable git crlf conversion
697
642
run : src/ci/scripts/disable-git-crlf-conversion.sh
698
- shell : " python src/ci/exec-with-shell.py {0}"
699
643
if : success() && !env.SKIP_JOB
700
644
- name : checkout submodules
701
645
run : src/ci/scripts/checkout-submodules.sh
702
- shell : " python src/ci/exec-with-shell.py {0}"
703
646
if : success() && !env.SKIP_JOB
704
647
- name : ensure line endings are correct
705
648
run : src/ci/scripts/verify-line-endings.sh
706
- shell : " python src/ci/exec-with-shell.py {0}"
707
649
if : success() && !env.SKIP_JOB
708
650
- name : run the build
709
651
run : src/ci/scripts/run-build-from-ci.sh
710
652
env :
711
653
AWS_ACCESS_KEY_ID : " ${{ env.CACHES_AWS_ACCESS_KEY_ID }}"
712
654
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.CACHES_AWS_ACCESS_KEY_ID)] }}"
713
655
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
714
- shell : " python src/ci/exec-with-shell.py {0}"
715
656
if : success() && !env.SKIP_JOB
716
657
- name : upload artifacts to S3
717
658
run : src/ci/scripts/upload-artifacts.sh
718
659
env :
719
660
AWS_ACCESS_KEY_ID : " ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}"
720
661
AWS_SECRET_ACCESS_KEY : " ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}"
721
662
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
663
master :
724
664
name : master
725
665
runs-on : ubuntu-latest
@@ -741,7 +681,6 @@ jobs:
741
681
run : src/ci/publish_toolstate.sh
742
682
env :
743
683
TOOLSTATE_REPO_ACCESS_TOKEN : " ${{ secrets.TOOLSTATE_REPO_ACCESS_TOKEN }}"
744
- shell : " python src/ci/exec-with-shell.py {0}"
745
684
if : success() && !env.SKIP_JOB
746
685
try-success :
747
686
needs :
0 commit comments