Skip to content

Exclude ci checks and tests from building boards #5702

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 12, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions tools/ci_set_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@
"stm": "arm",
}

IGNORE = [
"tools/ci_set_matrix.py",
"tools/ci_check_duplicate_usb_vid_pid.py",
]

changed_files = {}
try:
changed_files = json.loads(os.environ["CHANGED_FILES"])
Expand Down Expand Up @@ -81,6 +86,14 @@ def set_boards_to_build(build_all):
boards_to_build.update(port_to_boards[port])
continue

# Check the ignore list to see if the file isn't used on board builds.
if p in IGNORE:
continue

# Boards don't run tests so ignore those as well.
if p.startswith("tests"):
continue

# Otherwise build it all
boards_to_build = all_board_ids
break
Expand Down