Skip to content

Commit d14868d

Browse files
tannewtdhalbert
authored andcommitted
Exclude ci checks and tests from building boards
1 parent 9f0c072 commit d14868d

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

tools/ci_set_matrix.py

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,11 @@
3434
"stm": "arm",
3535
}
3636

37+
IGNORE = [
38+
"tools/ci_set_matrix.py",
39+
"tools/ci_check_duplicate_usb_vid_pid.py",
40+
]
41+
3742
changed_files = {}
3843
try:
3944
changed_files = json.loads(os.environ["CHANGED_FILES"])
@@ -80,6 +85,14 @@ def set_boards_to_build(build_all):
8085
if port != "unix":
8186
boards_to_build.update(port_to_boards[port])
8287
continue
88+
89+
# Check the ignore list to see if the file isn't used on board builds.
90+
if p in IGNORE:
91+
continue
92+
93+
# Boards don't run tests so ignore those as well.
94+
if p.startswith("tests"):
95+
continue
8396

8497
# Otherwise build it all
8598
boards_to_build = all_board_ids

0 commit comments

Comments
 (0)