File tree Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Expand file tree Collapse file tree 2 files changed +4
-5
lines changed Original file line number Diff line number Diff line change 34
34
- name : Fetch pull request ref
35
35
run : git fetch origin "$GITHUB_REF:$GITHUB_REF"
36
36
if : github.event_name == 'pull_request'
37
- - run : python3 ci/ci-util.py generate-matrix >> "$GITHUB_OUTPUT"
37
+ - run : python3 ci/ci-util.py generate-matrix | tee "$GITHUB_OUTPUT"
38
38
id : script
39
39
40
40
test :
Original file line number Diff line number Diff line change 72
72
73
73
# libm PR CI takes a long time and doesn't need to run unless relevant files have been
74
74
# changed. Anything matching this regex pattern will trigger a run.
75
- TRIGGER_LIBM_PR_CI = ".*(libm|musl).*"
75
+ TRIGGER_LIBM_CI_FILE_PAT = ".*(libm|musl).*"
76
76
77
77
TYPES = ["f16" , "f32" , "f64" , "f128" ]
78
78
@@ -231,7 +231,8 @@ def may_skip_libm_ci(self) -> bool:
231
231
if pr .contains_directive (TEST_LIBM_DIRECTIVE ):
232
232
return True
233
233
234
- return all (not re .match (TRIGGER_LIBM_PR_CI , str (f )) for f in self .changed )
234
+ # By default, run if there are any changed files matching the pattern
235
+ return all (not re .match (TRIGGER_LIBM_CI_FILE_PAT , str (f )) for f in self .changed )
235
236
236
237
def emit_workflow_output (self ):
237
238
"""Create a JSON object a list items for each type's changed files, if any
@@ -273,8 +274,6 @@ def emit_workflow_output(self):
273
274
may_skip = str (self .may_skip_libm_ci ()).lower ()
274
275
print (f"extensive_matrix={ ext_matrix } " )
275
276
print (f"may_skip_libm_ci={ may_skip } " )
276
- eprint (f"extensive_matrix={ ext_matrix } " )
277
- eprint (f"may_skip_libm_ci={ may_skip } " )
278
277
eprint (f"total extensive tests: { total_to_test } " )
279
278
280
279
if error_on_many_tests and total_to_test > MANY_EXTENSIVE_THRESHOLD :
You can’t perform that action at this time.
0 commit comments