github: add action to compile vial keyboards
This commit is contained in:
parent
0df86e79b4
commit
1fb12b497f
2 changed files with 41 additions and 0 deletions
24
.github/workflows/ci.yml
vendored
Normal file
24
.github/workflows/ci.yml
vendored
Normal file
|
@ -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
|
17
util/compile_vial_keyboards.py
Executable file
17
util/compile_vial_keyboards.py
Executable file
|
@ -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()
|
Loading…
Add table
Reference in a new issue