Cloud compilation

RMK provides a project-template that you can use to create your firmware easily. The following is a step-by-step tutorial for compiling RMK firmware using Github Actions.

Steps

  1. To get started, click Use this template button and choose Create a new repository:

use_template

  1. Input your repository name, and click Create repository

create rmk repository

  1. After the repository is created, there are two config files in the project:keyboard.toml and vial.json:

    • keyboard.toml: this file defines almost everything about your keyboard, follow keyboard configuration to create your own keyboard definition
    • vial.json: this file contains matrix definitions which will be recognized by vial. RMK now uses vial to update the keymap on-the-fly. Follow vial's porting guide to create vial.json for your keyboard.

    you can edit the files directly on Github by clicking the file and then choosing edit this file: edit file. After updating your config, click Commit changes.. to save it: commit change

  2. Once you saved your file, Github Action will automatically run to compile your firmware using your saved config files. Click Action tab on the top bar and you can see there's a workflow running. workflow

    You can also check the compilation log by clicking build/build. After the compilation finished, refresh the page and you can see the compiled RMK firmware under Summary/Artifacts:

    artifacts

  3. Now you get your RMK firmware! RMK provides hex and uf2 firmware that you can use. The final step is to flash the firmware to your microcontroller. You can follow instructions here if you don't know how to flash the firmware to your keyboard.