forked from poulainpi/oryx-with-custom-qmk
-
Notifications
You must be signed in to change notification settings - Fork 0
84 lines (71 loc) · 2.46 KB
/
Copy pathbuild-dual-hid-voyager.yml
File metadata and controls
84 lines (71 loc) · 2.46 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
name: Build dual-HID Voyager
on:
workflow_dispatch:
push:
branches:
- main
paths:
- scripts/patch-dual-hid-v2.py
- .github/workflows/build-dual-hid-voyager.yml
permissions:
contents: read
jobs:
build-dual-hid-voyager:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
with:
ref: main
fetch-depth: 1
- name: Initialize ZSA QMK firmware
run: |
git submodule update --init --remote --depth=1 --no-single-branch
cd qmk_firmware
git checkout -B firmware25 origin/firmware25
git submodule update --init --recursive
cd ..
- name: Install QMK-OpenRGB module
run: |
rm -rf qmk_firmware/modules/openrgb
git clone \
--depth 1 \
--branch module_revD \
https://gitlab.com/OpenRGBDevelopers/QMK-OpenRGB.git \
qmk_firmware/modules/openrgb
- name: Apply dual-HID patch
run: |
python3 scripts/patch-dual-hid-v2.py qmk_firmware
- name: Validate dual-HID source tree
run: |
grep -q 'OPENRGB_INTERFACE' qmk_firmware/tmk_core/protocol/usb_descriptor.h
grep -q 'USB_ENDPOINT_IN_OPENRGB' qmk_firmware/tmk_core/protocol/chibios/usb_endpoints.c
grep -q 'openrgb_hid_task' qmk_firmware/tmk_core/protocol/chibios/usb_main.c
grep -q 'openrgb_raw_hid_receive' qmk_firmware/modules/openrgb/openrgb.c
grep -q '"openrgb"' emVdK/keymap.json
- name: Build QMK Docker image
run: docker build -t qmk .
- name: Install layout into QMK tree
run: |
rm -rf qmk_firmware/keyboards/zsa/voyager/keymaps/emVdK
mkdir -p qmk_firmware/keyboards/zsa/voyager/keymaps
cp -r emVdK qmk_firmware/keyboards/zsa/voyager/keymaps/
- name: Build dual-HID Voyager firmware
run: |
docker run \
-v ./qmk_firmware:/root \
--rm \
qmk \
/bin/sh -c '
qmk setup zsa/qmk_firmware -b firmware25 -y
make zsa/voyager:emVdK
'
- name: Show built firmware
run: |
find qmk_firmware -maxdepth 1 -type f -name '*voyager*.bin' -ls
- name: Upload firmware
uses: actions/upload-artifact@v7
with:
name: voyager_emVdK_dual_hid
path: qmk_firmware/*voyager*.bin
if-no-files-found: error