Skip to content

Commit

Permalink
Merge pull request adafruit#5518 from jepler/deleted-board-ci
Browse files Browse the repository at this point in the history
account for deleted boards
  • Loading branch information
dhalbert authored Oct 26, 2021
2 parents 62cd878 + 30f3cf3 commit a8b69f2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tools/ci_set_matrix.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,12 @@ def set_boards_to_build(build_all):
arch_to_boards = {"arm": [], "riscv": [], "espressif": []}
for board in boards_to_build:
print(" ", board)
arch = PORT_TO_ARCH[board_to_port[board]]
port = board_to_port.get(board)
# A board can appear due to its _deletion_ (rare)
# if this happens it's not in `board_to_port`.
if not port:
continue
arch = PORT_TO_ARCH[port]
arch_to_boards[arch].append(board)

# Set the step outputs for each architecture
Expand Down

0 comments on commit a8b69f2

Please sign in to comment.