diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000..ecc4240ae7 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,24 @@ +name: CI + +on: + push: + workflow_dispatch: + pull_request: + paths: + - 'keyboards/**' + +jobs: + info: + runs-on: ubuntu-latest + + container: qmkfm/base_container + + steps: + - uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Compile Vial keyboards + run: | + make git-submodule + python3 util/compile_vial_keyboards.py diff --git a/util/compile_vial_keyboards.py b/util/compile_vial_keyboards.py new file mode 100755 index 0000000000..7dbbb69082 --- /dev/null +++ b/util/compile_vial_keyboards.py @@ -0,0 +1,17 @@ +#!/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()