This userspace is configured to build against vial-kb/vial-qmk on branch vial. The firmware source is tracked in this repository as the qmk_firmware git submodule.
- Fork this repository
- Clone your fork with submodules:
git clone --recurse-submodules <your-fork-url> cdinto this repository's clone directory- Run
mise install- This installs tools and runs
mise run init. mise run initinitialises submodules, setsqmk config user.qmk_hometo./qmk_firmware, and setsqmk config user.overlay_dirto this userspace.
- This installs tools and runs
- Add a new keymap for your board using
qmk new-keymap- This creates a new keymap in the
keyboardsdirectory in the same location used in the main QMK repository. For example,keyboards/planck/keymaps/<your keymap name>. - You can also create a keymap with
qmk new-keymap -kb <your_keyboard> -km <your_keymap>. - Alternatively, add your keymap manually in that location.
layouts/<layout name>/<your keymap name>/keymap.*is also supported.
- This creates a new keymap in the
- Add your keymap(s) to the build by running
qmk userspace-add -kb <your_keyboard> -km <your_keymap>- This automatically updates
qmk.json. qmk userspace-remove -kb <your_keyboard> -km <your_keymap>removes a target.qmk userspace-listlists current build targets.
- This automatically updates
- Commit your changes
- In the GitHub Actions tab, enable workflows
- Push your changes above to your forked GitHub repository
- Look at the GitHub Actions for a new workflow run
- Wait for the workflow to complete
- Inspect the Releases tab for the latest firmware build
- Ensure initialisation is complete with
mise install(or rerunmise run init) - Build the default firmware target:
mise run build - Build and generate
compile_commands.json:mise run compile - Build and flash:
mise run flash
Alternatively, if you configured your build targets in qmk.json, run qmk userspace-compile.
- If you cloned without
--recurse-submodules, rungit submodule update --init --recursive - To update to the latest
vialbranch revision ofvial-kb/vial-qmk, runmise run update-firmware - Commit the updated
qmk_firmwaresubmodule revision in this userspace repository
If you want GitHub Actions to build against a different repository or branch when the qmk_firmware submodule is not present, update .github/workflows/build_binaries.yaml.