Compare commits

...

4 Commits

Author SHA1 Message Date
zvecr
ed5f523690 docs shuffle 2023-01-12 18:16:09 +00:00
zvecr
57b14f647a Install any missing cli deps 2023-01-12 11:36:41 +00:00
zvecr
4a47068503 parametrize qmk repo 2023-01-12 11:27:42 +00:00
zvecr
97783816b1 parametrize qmk repo 2023-01-12 11:20:37 +00:00
2 changed files with 22 additions and 4 deletions

View File

@ -2,6 +2,17 @@ name: Build qmk_keymap repo
on: on:
workflow_call: workflow_call:
inputs:
qmk_repo:
description: 'qmk_firmware repo to build against'
default: 'qmk/qmk_firmware'
required: false
type: string
qmk_ref:
description: 'qmk_firmware branch to build against'
default: 'master'
required: false
type: string
permissions: permissions:
contents: write contents: write
@ -40,7 +51,8 @@ jobs:
- name: Checkout QMK - name: Checkout QMK
uses: actions/checkout@v3 uses: actions/checkout@v3
with: with:
repository: qmk/qmk_firmware repository: ${{ inputs.qmk_repo }}
ref: ${{ inputs.qmk_ref }}
submodules: recursive submodules: recursive
- name: Checkout userspace - name: Checkout userspace
@ -48,6 +60,9 @@ jobs:
with: with:
path: users/${{ github.actor }} path: users/${{ github.actor }}
- name: Install missing dependencies
run: pip3 install -r requirements.txt
- name: Build firmware - name: Build firmware
run: qmk compile -j=4 "users/${{ github.actor }}/${{ matrix.file }}" run: qmk compile -j=4 "users/${{ github.actor }}/${{ matrix.file }}"
@ -74,6 +89,7 @@ jobs:
repo_token: "${{ github.token }}" repo_token: "${{ github.token }}"
automatic_release_tag: "latest" automatic_release_tag: "latest"
title: "Latest Firmware" title: "Latest Firmware"
prerelease: false
files: | files: |
**/*.hex **/*.hex
**/*.bin **/*.bin

View File

@ -67,6 +67,8 @@ Run the following commands in your computer to create a folder with a few templa
git clone https://github.com/gh-username/qmk_keymap git clone https://github.com/gh-username/qmk_keymap
``` ```
?> Use your GitHub personal access token at the password prompt. If you have setup SSH access, replace `https://github.com/gh-username/qmk_keymap.git` with `git@github.com:gh-username/qmk_keymap.git` in the remote origin command above.
?> For Windows user running MSYS, the above command will create the folder `qmk_keymap/` and its content in the `C:\Users\<windows_username>\qmk_keymap\` path location. ?> For Windows user running MSYS, the above command will create the folder `qmk_keymap/` and its content in the `C:\Users\<windows_username>\qmk_keymap\` path location.
## Initial Code Commit ## Initial Code Commit
@ -98,10 +100,8 @@ To commit and push them into GitHub, run the following commands:
cd ~/qmk_keymap cd ~/qmk_keymap
git add -A git add -A
git commit -m "Initial QMK keymap commit" git commit -m "Initial QMK keymap commit"
git branch -M main
git push git push
``` ```
?> Use your GitHub personal access token at the password prompt. If you have setup SSH access, replace `https://github.com/gh-username/qmk_keymap.git` with `git@github.com:gh-username/qmk_keymap.git` in the remote origin command above.
### Review workflow output ### Review workflow output
@ -111,7 +111,9 @@ Files committed to GitHub in the previous step will automatically trigger the wo
3. Select that workflow to display its run from the last commit. 3. Select that workflow to display its run from the last commit.
4. If there are build errors, review the job log for details. 4. If there are build errors, review the job log for details.
Successfully compiled firmware will be under the "**Releases**" section, <https://github.com/zvecr/qmk_keymap/releases/tag/latest>. ### Flashing
Successfully compiled firmware will be under the "**Releases**" section, <https://github.com/qmk/qmk_keymap/releases/tag/latest>.
Download and flash the firmware file into your keyboard using [QMK Toolbox](https://docs.qmk.fm/#/newbs_flashing?id=flashing-your-keyboard-with-qmk-toolbox). Download and flash the firmware file into your keyboard using [QMK Toolbox](https://docs.qmk.fm/#/newbs_flashing?id=flashing-your-keyboard-with-qmk-toolbox).