Last active
December 1, 2020 21:25
-
-
Save danrue/0f670bb70de382c1f20a6f8f1c98b167 to your computer and use it in GitHub Desktop.
Print a tuxbuild build set containing all supported tuxbuild combinations
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
import requests | |
response = requests.get("https://api.tuxbuild.com/v1/supportmatrix") | |
matrix = response.json() | |
buildset = [] | |
for toolchain,architectures in matrix.items(): | |
for architecture in architectures: | |
buildset.append({ | |
"toolchain": toolchain, | |
"target_arch": architecture, | |
"kconfig": "tinyconfig", | |
}) | |
print(json.dumps({"sets": [{"name": "all", "builds": buildset}]}, indent=2)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment