-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (38 loc) · 1.32 KB
/
build.yml
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
name: QMK firmware build
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
container: qmkfm/qmk_cli
steps:
- name: Disable git safe directory checks
run: git config --global --add safe.directory '*'
- name: Checkout QMK
uses: actions/checkout@v3
with:
repository: qmk/qmk_firmware
submodules: recursive
persist-credentials: false
- name: Checkout userspace
uses: actions/checkout@v3
with:
path: ${{ github.actor }}
persist-credentials: false
- name: Symlink keymap from userspace to qmk directory
run: ln -s ../../../${{ github.actor }}/keymap keyboards/kinesis/keymaps/${{ github.actor }}
- name: Build firmware
run: |
qmk compile -kb kinesis/stapelberg -km ${{ github.actor }}
- name: Draw keymap layout
run: |
pipx install keymap-drawer
- name: Rename firmware files with run number
run: |
for file in *.hex; do mv $file ${file%.hex}_${{ github.run_number }}.hex; done
- name: Archive firmware
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: kinesis_${{ github.actor }}_qmk_keymap_${{ github.run_number }}
path: |
*.hex