qmk-keychron-q3-colemak-dh/util/ci_compile_vial_keyboards.py
2021-01-12 11:53:58 -05:00

18 lines
428 B
Python
Executable File

#!/usr/bin/env python3
from glob import glob
import subprocess
def main():
for filename in glob("keyboards/**/vial.json", recursive=True):
filename = filename[10:-10]
cmd = filename.split("/keymaps/")[0]
# compile default
subprocess.call(["make", cmd + ":default", "-j4"])
# compile via
subprocess.call(["make", cmd + ":via", "-j4"])
if __name__ == "__main__":
main()