-
Notifications
You must be signed in to change notification settings - Fork 384
41 lines (39 loc) · 1.13 KB
/
keyboard.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
name: kbd-check
on:
push:
paths:
- 'keyboards/**'
- '.github/workflows/keyboard.yml'
pull_request:
paths:
- 'keyboards/**'
- '.github/workflows/keyboard.yml'
jobs:
keyboard-compile:
runs-on: ubuntu-latest
steps:
- name: Clone Repository
uses: actions/checkout@v4
with:
lfs: false
if: github.event.inputs.git-ref == ''
- name: Clone Repository (manual ref)
uses: actions/checkout@v4
with:
lfs: false
ref: ${{ github.event.inputs.git-ref }}
if: github.event.inputs.git-ref != ''
- name: Cache local npm repository
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.os }}-nodekbd-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-nodekbd-
nodekbd-
- name: Install kmc
run: npm install -g @keymanapp/kmc@beta
- name: Compile Keyboards
run: kmc --error-reporting build keyboards/3.0/*.xml
- name: Run Kbd Charts
run: 'cd docs/charts/keyboards && npm ci && npm run build'