Skip to content

Commit

Permalink
reorganize zmk config directory
Browse files Browse the repository at this point in the history
  • Loading branch information
willpuckett committed Oct 8, 2024
1 parent 120c8a4 commit adffd83
Show file tree
Hide file tree
Showing 25 changed files with 36 additions and 2,653 deletions.
6 changes: 3 additions & 3 deletions case/case.py → .github/workflows/case.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
with BuildPart() as void:
with BuildSketch(Plane.XY.offset(2 * MM)) as edge_cuts:
with BuildLine() as line:
svg = import_svg("case/swoon_edges_vpype.svg")
svg = import_svg("swoon_edges_vpype.svg")
add(svg)
make_face()
extrude(amount = 4 * MM)
Expand All @@ -26,5 +26,5 @@
# fillet(top_face.edges(), radius=0.3 * MM)

# show(case)
export_step(case.part, file_path="case/case.step")
export_stl(case.part, file_path="case/case.stl")
export_step(case.part, file_path="case.step")
export_stl(case.part, file_path="case.stl")
6 changes: 3 additions & 3 deletions .github/workflows/case.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ jobs:
echo "Preparing SVG"
vpype read case/swoon_edges.svg linemerge --tolerance 3mm linesort reloop linesimplify write case/swoon_edges_vpype.svg
echo "Generating case..."
python case/case.py
python .github/workflows/case.py
echo "Done."
- uses: actions/upload-artifact@v4
with:
name: Case_STEP
path: "case/*.step"
path: "*.step"
- uses: actions/upload-artifact@v4
with:
name: Case_STL
path: "case/*.stl"
path: "*.stl"
2 changes: 1 addition & 1 deletion .images/draw-keymaps.sh → .github/workflows/keymap.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
keymap="zmk-config/boards/shields/swoon/swoon.keymap"
LAYOUTS=('NC' 'QWERTY' 'ENGRAM' 'ENGRAMMER')
LAYOUTS=('qwerty' 'engram' 'engrammer')

for l in {1..3}; do
echo "Rendering Layout ${LAYOUTS[l]}"
Expand Down
File renamed without changes.
6 changes: 2 additions & 4 deletions .github/workflows/zmk.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,15 @@ name: ZMK Build
on:
push:
paths:
- 'zmk-config/**'
- 'config/**'
- '.github/workflows/zmk.yml'
pull_request:
paths:
- 'zmk-config/**'
- 'config/**'
- '.github/workflows/zmk.yml'

jobs:
build:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
with:
build_matrix_path: 'zmk-config/build.yml'
config_path: 'zmk-config'
archive_name: 'swoon'
Loading

0 comments on commit adffd83

Please sign in to comment.