Skip to content

Commit 7293cde

Browse files
committed
update
1 parent 76f2397 commit 7293cde

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/main.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ jobs:
3434
- name: Fetch pull request ref
3535
run: git fetch origin "$GITHUB_REF:$GITHUB_REF"
3636
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"
3838
id: script
3939

4040
test:

ci/ci-util.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272

7373
# libm PR CI takes a long time and doesn't need to run unless relevant files have been
7474
# 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).*"
7676

7777
TYPES = ["f16", "f32", "f64", "f128"]
7878

@@ -231,7 +231,8 @@ def may_skip_libm_ci(self) -> bool:
231231
if pr.contains_directive(TEST_LIBM_DIRECTIVE):
232232
return True
233233

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)
235236

236237
def emit_workflow_output(self):
237238
"""Create a JSON object a list items for each type's changed files, if any
@@ -273,8 +274,6 @@ def emit_workflow_output(self):
273274
may_skip = str(self.may_skip_libm_ci()).lower()
274275
print(f"extensive_matrix={ext_matrix}")
275276
print(f"may_skip_libm_ci={may_skip}")
276-
eprint(f"extensive_matrix={ext_matrix}")
277-
eprint(f"may_skip_libm_ci={may_skip}")
278277
eprint(f"total extensive tests: {total_to_test}")
279278

280279
if error_on_many_tests and total_to_test > MANY_EXTENSIVE_THRESHOLD:

0 commit comments

Comments
 (0)