Skip to content

Instantly share code, notes, and snippets.

@danrue
Last active December 1, 2020 21:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danrue/0f670bb70de382c1f20a6f8f1c98b167 to your computer and use it in GitHub Desktop.
Save danrue/0f670bb70de382c1f20a6f8f1c98b167 to your computer and use it in GitHub Desktop.
Print a tuxbuild build set containing all supported tuxbuild combinations
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