-
Notifications
You must be signed in to change notification settings - Fork 483
68 lines (57 loc) · 1.58 KB
/
build-all.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
name: Build all firmwares
on:
push:
paths:
- 'qmk_firmware/keyboards/keyball/**.mk'
- 'qmk_firmware/keyboards/keyball/**.c'
- 'qmk_firmware/keyboards/keyball/**.h'
- 'qmk_firmware/keyboards/keyball/**.json'
- '.github/**.yml'
tags-ignore:
- '*'
branches:
- '*'
pull_request:
paths:
- 'qmk_firmware/keyboards/keyball/**.mk'
- 'qmk_firmware/keyboards/keyball/**.c'
- 'qmk_firmware/keyboards/keyball/**.h'
- 'qmk_firmware/keyboards/keyball/**.json'
- '.github/**.yml'
workflow_call: {}
jobs:
build:
strategy:
matrix:
keyboard: [ keyball39, keyball44, keyball61, keyball46, one47 ]
keymap: [ test, default, via ]
include:
- keyboard: keyball46
keymap: test_Left
- keyboard: keyball46
keymap: test_Both
- keyboard: keyball46
keymap: via_Left
- keyboard: keyball46
keymap: via_Both
uses: ./.github/workflows/build-firmware.yml
with:
qmk_version: '0.22.14'
keyboard: ${{ matrix.keyboard }}
keymap: ${{ matrix.keymap }}
check-size:
name: Check size
runs-on: ubuntu-22.04
needs:
- build
steps:
- uses: actions/download-artifact@v4
with:
pattern: "*-firmware"
merge-multiple: true
- name: List size of firmwares
run: |
for f in *.hex ; do
cut -c 2,3 $f | awk '{s+=strtonum("0x" $1)}END{printf "%5d/28672 (%2d%%, %5d bytes free) ",s,s*100/28672,28672-s}'
echo $f
done