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

50 lines
1.6 KiB
YAML
Raw Normal View History

on: [push, pull_request, workflow_dispatch]
2023-10-13 14:39:58 +02:00
jobs:
build:
2025-01-09 22:48:08 +01:00
runs-on: docker
container:
image: zmkfirmware/zmk-build-arm:stable
steps:
- name: Install Dependencies
run: |
apt-get update
apt-get install tree curl -y
2024-04-16 20:11:04 +02:00
2025-01-09 22:48:08 +01:00
- name: Install Node.JS Workarround, see https://github.com/nektos/act/issues/973
run: |
curl -fsSL https://deb.nodesource.com/setup_20.x | bash -
apt install -y nodejs
node --version
- name: Git checkout
uses: actions/checkout@v4
- name: Clone ZMK Repo
run: git clone -b feat/pointers-move-scroll https://github.com/petejohanson/zmk.git
- 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=corne_left -DZMK_CONFIG="../../config"
2025-01-09 22:48:08 +01:00
- name: Build Right Shield
working-directory: ./zmk/app
run: west build -d build/right -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="../../config"
2025-01-09 22:48:08 +01:00
- name: Rename artifacts
working-directory: .
run: |
mkdir "./artifacts"
cp ./zmk/app/build/left/zephyr/zmk.uf2 ./artifacts/corne_left-nice_nano_v2-zmk.uf2
cp ./zmk/app/build/right/zephyr/zmk.uf2 ./artifacts/corne_right-nice_nano_v2-zmk.uf2
2025-01-09 22:48:08 +01:00
- name: Upload Artifacts
if: ${{ true }}
uses: actions/upload-artifact@v3
with:
name: firmware
path: ./artifacts