Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/actions/setup-qmk/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Setup QMK
description: Install Python, ARM/AVR toolchains, and QMK CLI

inputs:
python-version:
description: Python version to use
default: '3.11'
include-avr:
description: Install AVR toolchain (needed for ErgoDox EZ, Planck EZ)
default: 'false'

runs:
using: composite
steps:
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}

- name: Install ARM toolchain and QMK CLI
shell: bash
run: |
sudo apt-get update
sudo apt-get install -y gcc-arm-none-eabi binutils-arm-none-eabi libnewlib-arm-none-eabi dfu-util
pip install qmk

- name: Install AVR toolchain
if: inputs.include-avr == 'true'
shell: bash
run: |
sudo apt-get install -y gcc-avr avr-libc binutils-avr
19 changes: 13 additions & 6 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,18 @@ on:
jobs:
build-firmware:
runs-on: ubuntu-latest
container: qmkfm/qmk_cli
strategy:
fail-fast: false
matrix:
keymap:
- default
- oryx
- klayi
include:
- keyboard: zsa/moonlander/reva
keymap: oryx
- keyboard: zsa/moonlander/revb
keymap: oryx
- keyboard: zsa/moonlander/reva
keymap: klayi
- keyboard: zsa/moonlander/revb
keymap: klayi

steps:
- name: Checkout QMK Firmware
Expand All @@ -29,7 +33,10 @@ jobs:
persist-credentials: false
submodules: true

- name: Setup QMK
uses: ./.github/actions/setup-qmk

- name: Build
id: build
run: |
qmk mass-compile -f manufacturer="ZSA Technology Labs" -km ${{ matrix.keymap }} -e SKIP_GIT=1
qmk compile -kb ${{ matrix.keyboard }} -km ${{ matrix.keymap }} -e SKIP_GIT=1
8 changes: 5 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,12 @@ jobs:
minor_pattern: "(feat)"
version_format: "${major}.${minor}.${patch}"

- name: Setup QMK
uses: ./.github/actions/setup-qmk

- name: Build firmware
uses: docker://qmkfm/qmk_cli
with:
args: qmk compile -kb zsa/moonlander -km klayi -e SKIP_GIT=1
run: |
qmk compile -kb zsa/moonlander -km klayi -e SKIP_GIT=1

- name: Prepare release assets
run: |
Expand Down
2 changes: 1 addition & 1 deletion keyboards/zsa/moonlander/keymaps/default/keymap.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"modules": [
"zsa/default"
"zsa/defaults"
]
}
2 changes: 1 addition & 1 deletion keyboards/zsa/moonlander/keymaps/oryx/keymap.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"modules": [
"zsa/default",
"zsa/defaults",
"zsa/oryx"
]
}