-
Notifications
You must be signed in to change notification settings - Fork 471
49 lines (36 loc) · 1.11 KB
/
build-firmware.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
48
49
name: Build a firmware
on:
workflow_call:
inputs:
qmk_version:
default: '0.22.14'
type: string
required: false
keyboard:
type: string
required: true
keymap:
type: string
required: true
jobs:
build:
name: Build a firmware ${{ inputs.keyboard }}:${{ inputs.keymap }}
runs-on: ubuntu-22.04
container:
image: ghcr.io/qmk/qmk_cli:latest
steps:
- name: Checkout source
uses: actions/checkout@v4
- name: Checkout qmk_firmware
uses: ./.github/actions/checkout-qmk_firmware
- name: Install a link to own source
run: ln -s $(pwd)/qmk_firmware/keyboards/keyball __qmk__/keyboards/keyball
- name: Install missing python modules
run: /usr/bin/python3 -m pip install -r __qmk__/requirements.txt
- name: Compile and link
run: qmk compile -j 4 -kb keyball/${{ inputs.keyboard }} -km ${{ inputs.keymap }}
- name: Archive built firmware
uses: actions/upload-artifact@v4
with:
name: ${{ inputs.keyboard }}-${{ inputs.keymap }}-firmware
path: __qmk__/*.hex