Skip to content

Commit

Permalink
Fix qmk file build
Browse files Browse the repository at this point in the history
  • Loading branch information
hadynz committed Oct 23, 2023
1 parent 748b9f6 commit 8f7f677
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 14 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ jobs:
build:
runs-on: ubuntu-latest
container: qmkfm/qmk_cli

steps:
- name: Disable git safe directory checks
run: git config --global --add safe.directory '*'
Expand All @@ -32,6 +31,21 @@ jobs:
qmk compile -kb kinesis/stapelberg -km ${{ github.actor }}
qmk c2json -kb kinesis/stapelberg -km hadynz keyboards/kinesis/keymaps/${{ github.actor }}/keymap.c > dist/keymap.json
- name: Rename firmware files with run number
run: |
for file in *.hex; do mv $file ${file%.hex}_${{ github.run_number }}.hex; done
- name: Archive firmware
uses: actions/upload-artifact@v3
continue-on-error: true
with:
name: kinesis_${{ github.actor }}_qmk_keymap_${{ github.run_number }}
path: |
*.hex
keymap-image:
runs-on: ubuntu-latest
steps:
- name: Install keymap-drawer
run: python3 -m pip install keymap-drawer

Expand All @@ -40,15 +54,3 @@ jobs:
keymap parse -c 10 -q dist/keymap.json > keymap.yaml
keymap draw dist/keymap.yaml > dist/keymap.svg
find dist
# - name: Rename firmware files with run number
# run: |
# for file in *.hex; do mv $file ${file%.hex}_${{ github.run_number }}.hex; done

# - name: Archive firmware
# uses: actions/upload-artifact@v3
# continue-on-error: true
# with:
# name: kinesis_${{ github.actor }}_qmk_keymap_${{ github.run_number }}
# path: |
# *.hex
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
dist

0 comments on commit 8f7f677

Please sign in to comment.