kyria-keyboard-config/.github/workflows/build.yml

44 lines
1.2 KiB
YAML
Raw Normal View History

on: [push, pull_request, workflow_dispatch]
jobs:
build:
2024-08-31 01:13:36 +02:00
runs-on: docker
2024-08-31 01:37:08 +02:00
container:
image: zmkfirmware/zmk-build-arm:stable
2024-08-31 01:09:14 +02:00
steps:
2024-08-31 01:47:15 +02:00
- name: Install Dependencies
run: |
apt-get update
apt-get install tree -y
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
2024-08-31 01:42:07 +02:00
- name: Hack container for local development
2024-08-31 01:43:00 +02:00
if: ${{ true }}
run: printf "/home/runner/externals/node20/bin\n" >> $GITHUB_PATH
2024-08-31 01:47:15 +02:00
2024-08-31 01:09:14 +02:00
- name: Git checkout Config
uses: actions/checkout@v4
2024-08-31 01:47:15 +02:00
- name: Clone ZMK Repo
run: git clone https://github.com/zmkfirmware/zmk.git
- name: Debug Output
run: tree /
2024-08-31 01:37:08 +02:00
- name: Initialize ZMK
working-directory: ./zmk
run: |
west init -l app/
west update
- name: Build Left Shield
working-directory: ./zmk/app
run: west build -d build/left -b nice_nano_v2 -- -DSHIELD=kyria_rev3_left -DZMK_CONFIG="../../config"
- name: Build Right Shield
working-directory: ./zmk/app
run: west build -d build/right -b nice_nano_v2 -- -DSHIELD=kyria_rev3_right -DZMK_CONFIG="../../config"
- run: tree /
2024-08-31 01:09:14 +02:00