Skip to content

Commit a8b69f2

Browse files
authored
Merge pull request #5518 from jepler/deleted-board-ci
account for deleted boards
2 parents 62cd878 + 30f3cf3 commit a8b69f2

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

tools/ci_set_matrix.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,12 @@ def set_boards_to_build(build_all):
8888
arch_to_boards = {"arm": [], "riscv": [], "espressif": []}
8989
for board in boards_to_build:
9090
print(" ", board)
91-
arch = PORT_TO_ARCH[board_to_port[board]]
91+
port = board_to_port.get(board)
92+
# A board can appear due to its _deletion_ (rare)
93+
# if this happens it's not in `board_to_port`.
94+
if not port:
95+
continue
96+
arch = PORT_TO_ARCH[port]
9297
arch_to_boards[arch].append(board)
9398

9499
# Set the step outputs for each architecture

0 commit comments

Comments
 (0)