docs: Allow them to build faster by skipping the shared bindings matrix

I've identified that this is a bottleneck when I am
refining documentation; by returning a bare minimum of data
to allow the doc build to complete, I can do more builds in less time.

To use, `env NO_BINDINGS_MATRIX= make html`
This commit is contained in:
Jeff Epler 2024-01-29 11:17:13 -06:00
parent f5bf485426
commit b71daced33

View file

@ -173,6 +173,11 @@ def get_settings_from_makefile(port_dir, board_name):
This list must explicitly include any setting queried by tools/ci_set_matrix.py.
"""
if os.getenv('NO_BINDINGS_MATRIX'):
return {
'CIRCUITPY_BUILD_EXTENSIONS': '.bin'
}
contents = subprocess.run(
["make", "-C", port_dir, "-f", "Makefile", f"BOARD={board_name}", "print-CFLAGS", "print-CIRCUITPY_BUILD_EXTENSIONS", "print-FROZEN_MPY_DIRS", "print-SRC_PATTERNS", "print-SRC_SUPERVISOR"],
encoding="utf-8",