Skip to content

Commit

Permalink
Restructure repo as an External QMK Userspace
Browse files Browse the repository at this point in the history
  • Loading branch information
mikybars committed Jul 8, 2024
1 parent 05a2da9 commit 6762ef4
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 44 deletions.
43 changes: 0 additions & 43 deletions .github/workflows/build.yml

This file was deleted.

20 changes: 20 additions & 0 deletions .github/workflows/build_binaries.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Build QMK firmware

on: [push, workflow_dispatch]

permissions:
contents: write

jobs:
build:
name: 'QMK Userspace Build'
uses: qmk/.github/.github/workflows/qmk_userspace_build.yml@main
with:
qmk_repo: qmk/qmk_firmware
qmk_ref: master

publish:
name: 'QMK Userspace Publish'
uses: qmk/.github/.github/workflows/qmk_userspace_publish.yml@main
if: always() && !cancelled()
needs: build
16 changes: 16 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
.SILENT:

MAKEFLAGS += --no-print-directory

QMK_USERSPACE := $(patsubst %/,%,$(dir $(shell realpath "$(lastword $(MAKEFILE_LIST))")))
ifeq ($(QMK_USERSPACE),)
QMK_USERSPACE := $(shell pwd)
endif

QMK_FIRMWARE_ROOT = $(shell qmk config -ro user.qmk_home | cut -d= -f2 | sed -e 's@^None$$@@g')
ifeq ($(QMK_FIRMWARE_ROOT),)
$(error Cannot determine qmk_firmware location. `qmk config -ro user.qmk_home` is not set)
endif

%:
+$(MAKE) -C $(QMK_FIRMWARE_ROOT) $(MAKECMDGOALS) QMK_USERSPACE=$(QMK_USERSPACE)
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@
"KC_NO",
"KC_NO",
"KC_NO",
"LLOCK",
"ANY(LLOCK)",
"KC_NO",
"KC_NO"
],
Expand Down
1 change: 1 addition & 0 deletions keyboards/keebio/iris/rev7/keymaps/mikybars/rules.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
MCU = atmega32u4
6 changes: 6 additions & 0 deletions qmk.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"userspace_version": "1.0",
"build_targets": [
["keebio/iris/rev7", "mikybars"]
]
}

0 comments on commit 6762ef4

Please sign in to comment.