Skip to content

Commit 32bc5ba

Browse files
committed
Add missing workflows
1 parent 188ef21 commit 32bc5ba

File tree

2 files changed

+38
-0
lines changed

2 files changed

+38
-0
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
name: Build ZMK firmware
2+
on: [push, pull_request, workflow_dispatch]
3+
4+
jobs:
5+
build:
6+
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main

.github/workflows/draw-keymap.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Use the keymap-drawer ZMK user config workflow
2+
# https://github.com/caksoylar/keymap-drawer#setting-up-an-automated-drawing-workflow
3+
name: Draw ZMK keymaps
4+
on:
5+
workflow_dispatch: # can be triggered manually
6+
push: # automatically run on changes to following paths
7+
paths:
8+
- "config/*.keymap"
9+
- "config/*.dtsi"
10+
- "boards/shields/*/*.dtsi"
11+
- "keymap_drawer.config.yaml"
12+
- "boards/shields/*/*.json"
13+
- ".github/workflows/draw-keymaps.yml"
14+
- "images/keymap-img/keymap_drawer.config.yaml"
15+
# - 'boards/*/*/*.keymap'
16+
17+
jobs:
18+
draw:
19+
uses: caksoylar/keymap-drawer/.github/workflows/draw-zmk.yml@main
20+
permissions:
21+
contents: write # allow workflow to commit to the repo
22+
with:
23+
keymap_patterns: "config/*.keymap" # path to the keymaps to parse
24+
config_path: "images/keymap-img/keymap_drawer.config.yaml" # config file, ignored if not exists
25+
output_folder: "images/keymap-img" # path to save produced SVG and keymap YAML files
26+
json_path: "config"
27+
# extra_keymap_yaml: "${keyboard}: 'images/keymap-img/combos.yaml'"
28+
parse_args: "" # map of extra args to pass to `keymap parse`, e.g. "corne:'-l Def Lwr Rse' cradio:''"
29+
draw_args: "" # map of extra args to pass to `keymap draw`, e.g. "corne:'-k corne_rotated' cradio:'-k paroxysm'"
30+
amend_commit: true # amend generated files to commit that produces them
31+
fail_on_error: true
32+
debug_mode: false

0 commit comments

Comments
 (0)