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

50 lines
1.6 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
2024-08-31 01:49:18 +02:00
apt-get install tree curl -y
2024-08-31 01:47:15 +02:00
2024-08-31 02:32:15 +02:00
- name: Install Node.JS Workarround, see https://github.com/nektos/act/issues/973
2024-08-31 01:49:18 +02:00
run: |
2024-08-31 01:50:30 +02:00
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs
2024-08-31 01:49:18 +02:00
node --version
2024-08-31 01:47:15 +02:00
2024-08-31 02:32:15 +02:00
- name: Git checkout
2024-08-31 01:09:14 +02:00
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
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"
2024-08-31 02:32:15 +02:00
- name: Rename artifacts
working-directory: .
2024-08-31 02:17:39 +02:00
run: |
2024-08-31 02:32:15 +02:00
mkdir "./artifacts"
cp ./zmk/app/build/left/zephyr/zmk.uf2 ./artifacts/kyria_rev3_left-nice_nano_v2-zmk.uf2
cp ./zmk/app/build/right/zephyr/zmk.uf2 ./artifacts/kyria_rev3_right-nice_nano_v2-zmk.uf2
2024-08-31 02:17:39 +02:00
- name: Upload Artifacts
if: ${{ true }}
uses: actions/upload-artifact@v3
with:
2024-08-31 02:32:15 +02:00
name: firmware
path: ./artifacts