add build workflow

This commit is contained in:
Osman Faruk Bayram 2024-09-30 17:16:56 +03:00
parent 6f0cd5e025
commit ed5b8f09cc

38
.github/workflows/build.yml vendored Normal file
View file

@ -0,0 +1,38 @@
name: Build QMK firmware
on: [push, workflow_dispatch]
jobs:
build:
runs-on: ubuntu-latest
container: ghcr.io/qmk/qmk_cli
strategy:
fail-fast: false
steps:
- name: Disable git safe directory checks
run : git config --global --add safe.directory '*'
- name: Checkout QMK
uses: actions/checkout@v3
with:
repository: qmk/qmk_firmware
submodules: recursive
- name: Checkout userspace
uses: actions/checkout@v3
with:
path: keyboards\crkbd\keymaps\qmk-keymap-corne
- name: Build firmware
run: qmk compile -kb crkbd/rev1 -km qmk-keymap-corne -e CONVERT_TO=rp2040_ce
- name: Archive firmware
uses: actions/upload-artifact@v3
continue-on-error: true
with:
path: |
*.hex
*.bin
*.uf2