Skip to content

Commit

Permalink
changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ReFil committed Mar 14, 2024
1 parent 9361197 commit f3df6a3
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 118 deletions.
43 changes: 1 addition & 42 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,46 +1,5 @@
on: [push, pull_request, workflow_dispatch]

name: Build

jobs:
build:
runs-on: ubuntu-latest
container:
image: zmkfirmware/zmk-build-arm:stable
name: Build
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Cache west modules
uses: actions/cache@v3
env:
cache-name: cache-zephyr-modules
with:
path: |
modules/
tools/
zephyr/
bootloader/
zmk/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('manifest-dir/west.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: West Init
run: west init -l config
- name: West Update
run: west update
- name: West Zephyr export
run: west zephyr-export
- name: West Build (pw9)
run: west build -s zmk/app -b pw9 -- -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: pw9 Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 pw9.uf2
- name: Archive (pw9)
uses: actions/upload-artifact@v3
with:
name: firmware
path: pw9.uf2
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 2 additions & 0 deletions build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
board: [ "pw9" ]
79 changes: 3 additions & 76 deletions config/pw9.keymap
Original file line number Diff line number Diff line change
@@ -1,88 +1,15 @@
#include <behaviors.dtsi>
#include <behaviors/keysmash.dtsi>
#include <behaviors/awawa.dtsi>
#include <dt-bindings/zmk/keys.h>

/ {
macros {
init: init {
compatible = "zmk,behavior-macro";
label = "init";
#binding-cells = <0>;
bindings = <&kp I &kp N &kp I &kp T &kp I &kp A &kp L &kp I &kp S &kp E &kp ENTER>;
};
input: input {
compatible = "zmk,behavior-macro";
label = "input";
#binding-cells = <0>;
bindings = <&kp I &kp N &kp P &kp U &kp T &kp ENTER>;
};
speed: speed {
compatible = "zmk,behavior-macro";
label = "speed";
#binding-cells = <0>;
bindings = <&kp S &kp P &kp E &kp E &kp D &kp ENTER>;
};
dispense: dispense {
compatible = "zmk,behavior-macro";
label = "dispense";
#binding-cells = <0>;
bindings = <&kp D &kp I &kp S &kp P &kp E &kp N &kp S &kp E &kp ENTER>;
};
stop: stop {
compatible = "zmk,behavior-macro";
label = "stop";
#binding-cells = <0>;
bindings = <&kp S &kp T &kp O &kp P &kp ENTER>;
};
pickup: pickup {
compatible = "zmk,behavior-macro";
label = "pickup";
#binding-cells = <0>;
bindings = <&kp P &kp I &kp C &kp K &kp U &kp P &kp ENTER>;
};
two: two {
compatible = "zmk,behavior-macro";
label = "two";
#binding-cells = <0>;
bindings = <&kp NUMBER_2 &kp ENTER>;
};
num_1: num_1 {
compatible = "zmk,behavior-macro";
label = "num_1";
#binding-cells = <0>;
bindings = <&kp N1 &kp ENTER>;
};
sample_pickup: sample_pickup {
compatible = "zmk,behavior-macro";
label = "new_macroq";
#binding-cells = <0>;
bindings = <&kp S &kp A &kp M &kp P &kp L &kp E &kp UNDERSCORE &kp P &kp I &kp C &kp K &kp U &kp P &kp ENTER>;
};
prime_chip: prime_chip {
compatible = "zmk,behavior-macro";
label = "new_macrow";
#binding-cells = <0>;
bindings = <&kp P &kp R &kp I &kp M &kp E &kp UNDERSCORE &kp C &kp H &kp I &kp P &kp ENTER>;
};
measure_sample: measure_sample {
compatible = "zmk,behavior-macro";
label = "new_macroe";
#binding-cells = <0>;
bindings = <&kp M &kp E &kp A &kp S &kp U &kp R &kp E &kp UNDERSCORE &kp S &kp A &kp M &kp P &kp L &kp E &kp ENTER>;
};
cleanIL: cleanIL {
compatible = "zmk,behavior-macro";
label = "new_macror";
#binding-cells = <0>;
bindings = <&kp C &kp L &kp E &kp A &kp N &kp I &kp L &kp ENTER>;
};
};

keymap {
compatible = "zmk,keymap";

default_layer {
bindings = <
&kp Q &kp W &kp E
&awawa &keysmash &kp E
&kp A &kp S &kp D
&kp Z &kp X &kp C
>;
Expand Down
6 changes: 6 additions & 0 deletions config/west.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,11 @@ manifest:
remote: zmkfirmware
revision: main
import: app/west.yml
- name: keysmash
url: https://github.com/ReFil/refil-zmk-behaviour-modules
revision: keysmash
- name: awawa
url: https://github.com/ReFil/refil-zmk-behaviour-modules
revision: awawa
self:
path: config
3 changes: 3 additions & 0 deletions zephyr/module.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
build:
settings:
board_root: .

0 comments on commit f3df6a3

Please sign in to comment.