79
79
continue-on-error : ${{ matrix.continue_on_error || false }}
80
80
strategy :
81
81
matrix :
82
+ # Check the `calculate_matrix` job to see how is the matrix defined.
83
+ include : ${{ fromJSON(needs.calculate_matrix.outputs.jobs) }}
82
84
steps :
83
85
- if : contains(matrix.os, 'windows')
84
86
@@ -130,8 +132,8 @@ jobs:
130
132
# which then uses log commands to actually set them.
131
133
EXTRA_VARIABLES : ${{ toJson(matrix.env) }}
132
134
133
- - name : ensure the channel matches the target branch
134
- run : src/ci/scripts/verify-channel.sh
135
+ # - name: ensure the channel matches the target branch
136
+ # run: src/ci/scripts/verify-channel.sh
135
137
136
138
- name : collect CPU statistics
137
139
run : src/ci/scripts/collect-cpu-stats.sh
@@ -180,14 +182,14 @@ jobs:
180
182
- name : disable git crlf conversion
181
183
run : src/ci/scripts/disable-git-crlf-conversion.sh
182
184
183
- - name : ensure line endings are correct
184
- run : src/ci/scripts/verify-line-endings.sh
185
-
186
- - name : ensure backported commits are in upstream branches
187
- run : src/ci/scripts/verify-backported-commits.sh
185
+ # - name: ensure line endings are correct
186
+ # run: src/ci/scripts/verify-line-endings.sh
187
+ #
188
+ # - name: ensure backported commits are in upstream branches
189
+ # run: src/ci/scripts/verify-backported-commits.sh
188
190
189
- - name : ensure the stable version number is correct
190
- run : src/ci/scripts/verify-stable-version-number.sh
191
+ # - name: ensure the stable version number is correct
192
+ # run: src/ci/scripts/verify-stable-version-number.sh
191
193
192
194
- name : run the build
193
195
# Redirect stderr to stdout to avoid reordering the two streams in the GHA logs.
@@ -204,45 +206,14 @@ jobs:
204
206
echo "disk usage:"
205
207
df -h
206
208
207
- - name : upload artifacts to github
208
- uses : actions/upload-artifact@v4
209
- with :
210
- # name is set in previous step
211
- name : ${{ env.DOC_ARTIFACT_NAME }}
212
- path : obj/artifacts/doc
213
- if-no-files-found : ignore
214
- retention-days : 5
215
-
216
- - name : upload artifacts to S3
217
- run : src/ci/scripts/upload-artifacts.sh
218
- env :
219
- AWS_ACCESS_KEY_ID : ${{ env.ARTIFACTS_AWS_ACCESS_KEY_ID }}
220
- AWS_SECRET_ACCESS_KEY : ${{ secrets[format('AWS_SECRET_ACCESS_KEY_{0}', env.ARTIFACTS_AWS_ACCESS_KEY_ID)] }}
221
- # Adding a condition on DEPLOY=1 or DEPLOY_ALT=1 is not needed as all deploy
222
- # builders *should* have the AWS credentials available. Still, explicitly
223
- # adding the condition is helpful as this way CI will not silently skip
224
- # deploying artifacts from a dist builder if the variables are misconfigured,
225
- # erroring about invalid credentials instead.
226
- if : github.event_name == 'push' || env.DEPLOY == '1' || env.DEPLOY_ALT == '1'
227
-
228
- - name : upload job metrics to DataDog
229
- if : needs.calculate_matrix.outputs.run_type != 'pr'
230
- env :
231
- DATADOG_SITE : datadoghq.com
232
- DATADOG_API_KEY : ${{ secrets.DATADOG_API_KEY }}
233
- DD_GITHUB_JOB_NAME : ${{ matrix.name }}
234
- run : |
235
- npm install -g @datadog/datadog-ci@^2.x.x
236
- python3 src/ci/scripts/upload-build-metrics.py build/cpu-usage.csv
237
-
238
209
# This job isused to tell bors the final status of the build, as there is no practical way to detect
239
210
# when a workflow is successful listening to webhooks only in our current bors implementation (homu).
240
211
outcome :
241
212
name : bors build finished
242
213
runs-on : ubuntu-latest
243
214
needs : [ calculate_matrix, job ]
244
215
# !cancelled() executes the job regardless of whether the previous jobs passed or failed
245
- if : ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }
216
+ if : ${{ !cancelled() && contains(fromJSON('["auto", "try"]'), needs.calculate_matrix.outputs.run_type) }}
246
217
steps :
247
218
- name : checkout the source code
248
219
uses : actions/checkout@v4
0 commit comments