46 lines
1.3 KiB
YAML
46 lines
1.3 KiB
YAML
on: [push, pull_request, workflow_dispatch]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: docker
|
|
container:
|
|
image: zmkfirmware/zmk-build-arm:stable
|
|
steps:
|
|
- name: Install Dependencies
|
|
run: |
|
|
apt-get update
|
|
apt-get install tree curl -y
|
|
|
|
- name: Install Node.js
|
|
run: |
|
|
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
|
|
apt install -y nodejs
|
|
node --version
|
|
|
|
- name: Hack container for local development
|
|
if: ${{ true }}
|
|
run: printf "/home/runner/externals/node20/bin\n" >> $GITHUB_PATH
|
|
|
|
- name: Git checkout Config
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Clone ZMK Repo
|
|
run: git clone https://github.com/zmkfirmware/zmk.git
|
|
|
|
- name: Debug Output
|
|
run: tree
|
|
- 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"
|
|
- name: Debug Output
|
|
working-directory: .
|
|
run: tree
|
|
|