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
- To get started, click
Use this template
button and chooseCreate a new repository
:
- Input your repository name, and click
Create repository
-
After the repository is created, there are two config files in the project:
keyboard.toml
andvial.json
:keyboard.toml
: this file defines almost everything about your keyboard, follow keyboard configuration to create your own keyboard definitionvial.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 createvial.json
for your keyboard.
you can edit the files directly on Github by clicking the file and then choosing
edit this file
: . After updating your config, clickCommit changes..
to save it: -
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.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 underSummary/Artifacts
: -
Now you get your RMK firmware! RMK provides
hex
anduf2
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.