From 6facb7f7f0f2aabb1707727855d93a124a07652c Mon Sep 17 00:00:00 2001 From: Hady Osman Date: Sat, 7 Oct 2023 13:00:53 +1300 Subject: [PATCH] Change folder directory to support local dev --- .github/workflows/build.yml | 7 +++++-- README.md | 25 ++++++++++++++++++++++--- config.h => keymap/config.h | 0 keymap.c => keymap/keymap.c | 0 rules.mk => keymap/rules.mk | 0 5 files changed, 27 insertions(+), 5 deletions(-) rename config.h => keymap/config.h (100%) rename keymap.c => keymap/keymap.c (100%) rename rules.mk => keymap/rules.mk (100%) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b33f613..6ecf7a4 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -20,9 +20,12 @@ jobs: - name: Checkout userspace uses: actions/checkout@v3 with: - path: keyboards/kinesis/keymaps/${{ github.actor }} + path: ${{ github.actor }} persist-credentials: false + - name: Symlink keymap from userspace to qmk directory + run: ln -s $PATH/${{ github.actor }}/keymap keyboards/kinesis/keymaps/${{ github.actor }} + - name: Build firmware run: qmk compile -kb kinesis/stapelberg -km ${{ github.actor }} @@ -30,7 +33,7 @@ jobs: uses: actions/upload-artifact@v3 continue-on-error: true with: - name: kinesis_hadynz_qmk_keymap_${{ github.run_number }} + name: kinesis_${{ github.actor }}_qmk_keymap_${{ github.run_number }} path: | *.hex *.bin diff --git a/README.md b/README.md index d574392..a91fb4f 100644 --- a/README.md +++ b/README.md @@ -5,19 +5,38 @@ This is a QMK "[userspace][1]" for my Kinesis Advantage keyboard firmware -- my very first ergo keyboard. -## The Keyboard +## Local Development + +1. Setup qmk development environment: https://docs.qmk.fm/#/newbs_getting_started +2. Link this repository to the qmk directory a keycap folder + +```bash +# $PWD is the path to this repository +# Create a symlink of the `keymap` folder into `kinesis` keyboard folder inside qmk directory +ln -s $PWD/keymap ../qmk_firmware/keyboards/kinesis/keymaps/hadynz + +# Compile +qmk compile -kb kinesis/stapelberg -km hadynz + +# Create (QMK Configurator) JSON file from keymap + +``` + +## Background + +### The Keyboard A Kinesis Advantage 1 keyboard with Cherry MX Brown switches. The keyboard has been modified with the ["stapelberg" mod][3]. In other words, the keyboard's original controller has been gutted and replaced with a Teensy 2.0++ that runs the feature-rich QMK firmware. -## Building and flashing the firmware +### Building and flashing the firmware The firmware is automatically built using the QMK CLI that runs on [GitHub Actions][4]. Once built, the firmware is flashed onto the Teensy 2.0++ using the [Teensy Loader][2]. -## Layout +### Layout I bought my keyboard second hand and have built on top of the previous owner (Uric Marker)'s layout which was largely inspired by the [Miryoku layout][5]. diff --git a/config.h b/keymap/config.h similarity index 100% rename from config.h rename to keymap/config.h diff --git a/keymap.c b/keymap/keymap.c similarity index 100% rename from keymap.c rename to keymap/keymap.c diff --git a/rules.mk b/keymap/rules.mk similarity index 100% rename from rules.mk rename to keymap/rules.mk