From cf826d33d16f22567f2d0e61df32a025acaca980 Mon Sep 17 00:00:00 2001 From: Scott Shawcroft Date: Fri, 10 Dec 2021 10:28:49 -0800 Subject: [PATCH] Exclude ci checks and tests from building boards --- tools/ci_set_matrix.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tools/ci_set_matrix.py b/tools/ci_set_matrix.py index 2f74fbec04..d031224914 100644 --- a/tools/ci_set_matrix.py +++ b/tools/ci_set_matrix.py @@ -34,6 +34,11 @@ PORT_TO_ARCH = { "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"]) @@ -80,6 +85,14 @@ def set_boards_to_build(build_all): if port != "unix": 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