Skip to content

Commit

Permalink
build: refactor build flows
Browse files Browse the repository at this point in the history
  • Loading branch information
dcai committed Oct 2, 2023
1 parent 3a0e062 commit 7827b7f
Show file tree
Hide file tree
Showing 9 changed files with 102 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/build.yml → .github/workflows/reset.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,14 @@ on:
paths:
- "config/**"
- ".github/**"
- "build.yaml"
- "build/sweep.yaml"
pull_request:
workflow_dispatch:

jobs:
build:
build_reset_fw:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
secrets: inherit
with:
build_matrix_path: "build_matrix/reset.yaml"
archive_name: "zmk_reset"
19 changes: 19 additions & 0 deletions .github/workflows/reviung5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- master
- main
paths:
- "config/**"
- ".github/**"
- "build_matrix/reviung5.yaml"
pull_request:
workflow_dispatch:

jobs:
build_sweep:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
secrets: inherit
with:
build_matrix_path: "build_matrix/reviung5.yaml"
archive_name: "zmk_reviung5"
19 changes: 19 additions & 0 deletions .github/workflows/sweep.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
on:
push:
branches:
- master
- main
paths:
- "config/**"
- ".github/**"
- "build_matrix/sweep.yaml"
pull_request:
workflow_dispatch:

jobs:
build_sweep:
uses: zmkfirmware/zmk/.github/workflows/build-user-config.yml@main
secrets: inherit
with:
build_matrix_path: "build_matrix/sweep.yaml"
archive_name: "zmk_sweep"
5 changes: 5 additions & 0 deletions build_matrix/reset.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
board:
- nice_nano_v2
shield:
- settings_reset
5 changes: 5 additions & 0 deletions build_matrix/reviung34.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
board:
- nice_nano_v2
shield:
- reviung5
5 changes: 5 additions & 0 deletions build_matrix/reviung5.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
board:
- nice_nano_v2
shield:
- reviung5
2 changes: 1 addition & 1 deletion build.yaml → build_matrix/sweep.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ board:
shield:
- cradio_left
- cradio_right
- settings_reset
# - settings_reset
# - reviung34

# include:
Expand Down
4 changes: 4 additions & 0 deletions config/reviung5.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Uncomment the following lines to enable RGB underglow
CONFIG_ZMK_RGB_UNDERGLOW=y
CONFIG_WS2812_STRIP=y
CONFIG_BT_CTLR_TX_PWR_PLUS_8=y
38 changes: 38 additions & 0 deletions config/reviung5.keymap
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
/*
* Copyright (c) 2022 The ZMK Contributors
*
* SPDX-License-Identifier: MIT
*/

#include <behaviors.dtsi>
#include <dt-bindings/zmk/keys.h>
#include <dt-bindings/zmk/bt.h>
#include <dt-bindings/zmk/outputs.h>

#define BASE 0
#define BLE 1

/ {
keymap {
compatible = "zmk,keymap";

base_layer {
label = "BASE";
bindings = <
// ╭─────────────┬──────────────┬──────────────────┬─────────────┬─────────────╮
&mo BLE &kp C_PREVIOUS &kp C_PLAY_PAUSE &kp C_NEXT &kp C_MUTE
// ╰─────────────┴──────────────┴──────────────────┴─────────────┴─────────────╯
>;
sensor-bindings = <&inc_dec_kp C_VOL_UP C_VOL_DN>;
};

ble_layer {
label = "BLE";
bindings = <
// ╭─────────────┬─────────────┬─────────────┬─────────────┬─────────────╮
&trans &out OUT_TOG &bt BT_PRV &bt BT_NXT &bt BT_CLR
// ╰─────────────┴─────────────┴─────────────┴─────────────┴─────────────╯
>;
};
};
};

0 comments on commit 7827b7f

Please sign in to comment.