Skip to content

Commit 641a398

Browse files
committed
only build subset of boards for bindings changes
1 parent 3b600ac commit 641a398

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

tools/ci_set_matrix.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,13 @@
1212
base branch while pushes will compare to the current ref. We override this
1313
for the adafruit/circuitpython repo so we build all docs/boards for pushes.
1414
15+
When making changes to the script it is useful to manually test it.
16+
You can for instance run
17+
```shell
18+
tools/ci_set_matrix ports/raspberrypi/common-hal/socket/SSLSocket.c
19+
```
20+
and (at the time this comment was written) get a series of messages indicating
21+
that only the single board raspberry_pi_pico_w would be built.
1522
"""
1623

1724
import re
@@ -112,7 +119,7 @@ def get_settings(board):
112119
board_pattern = re.compile(r"^ports/[^/]+/boards/([^/]+)/")
113120
port_pattern = re.compile(r"^ports/([^/]+)/")
114121
module_pattern = re.compile(
115-
r"^(ports/[^/]+/common-hal|shared-bindings|shared-module)/([^/]+)/"
122+
r"^(ports/[^/]+/(?:common-hal|bindings)|shared-bindings|shared-module)/([^/]+)/"
116123
)
117124
for p in changed_files:
118125
# See if it is board specific

0 commit comments

Comments
 (0)