-
Notifications
You must be signed in to change notification settings - Fork 483
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #547 from koron/flexible-gha-build
Flexible GHA build
- Loading branch information
Showing
6 changed files
with
102 additions
and
78 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: Build a firmware | ||
|
||
on: | ||
|
||
workflow_call: | ||
inputs: | ||
qmk_version: | ||
default: '0.22.14' | ||
type: string | ||
required: false | ||
keyboard: | ||
type: string | ||
required: true | ||
keymap: | ||
type: string | ||
required: true | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
name: Build a firmware ${{ inputs.keyboard }}:${{ inputs.keymap }} | ||
|
||
runs-on: ubuntu-latest | ||
container: | ||
image: ghcr.io/qmk/qmk_cli:latest | ||
|
||
steps: | ||
|
||
- name: Checkout source | ||
uses: actions/checkout@v4 | ||
|
||
- name: Checkout qmk_firmware | ||
uses: ./.github/actions/checkout-qmk_firmware | ||
|
||
- name: Install a link to own source | ||
run: ln -s $(pwd)/qmk_firmware/keyboards/keyball __qmk__/keyboards/keyball | ||
|
||
- name: Compile and link | ||
run: qmk compile -j 4 -kb keyball/${{ inputs.keyboard }} -km ${{ inputs.keymap }} | ||
|
||
- name: Archive built firmware | ||
uses: actions/upload-artifact@v4 | ||
with: | ||
name: ${{ inputs.keyboard }}-${{ inputs.keymap }}-firmware | ||
path: __qmk__/*.hex |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
name: Build a firmware on demand | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
keyboard: | ||
description: 'Keyboard' | ||
required: true | ||
type: choice | ||
options: | ||
- keyball39 | ||
- keyball44 | ||
- keyball61 | ||
- keyball46 | ||
- one47 | ||
keymap: | ||
description: 'Keymap' | ||
required: true | ||
type: string | ||
default: 'default' | ||
|
||
jobs: | ||
|
||
build: | ||
|
||
uses: ./.github/workflows/build-firmware.yml | ||
with: | ||
qmk_version: '0.22.14' | ||
keyboard: ${{ inputs.keyboard }} | ||
keymap: ${{ inputs.keymap }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters