Skip to content

Commit 05e0734

Browse files
authored
Merge pull request #5702 from adafruit/tannewt-patch-2
Exclude ci checks and tests from building boards
2 parents 568c281 + c3a90e3 commit 05e0734

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"])
@@ -81,6 +86,14 @@ def set_boards_to_build(build_all):
8186
boards_to_build.update(port_to_boards[port])
8287
continue
8388

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
96+
8497
# Otherwise build it all
8598
boards_to_build = all_board_ids
8699
break

0 commit comments

Comments
 (0)