Compare commits

..

38 Commits

Author SHA1 Message Date
27aa448c1c tidy up for main
Some checks are pending
Build
Build / Build (push) Has started running
2023-04-11 20:26:28 +00:00
6ad09f6aab don't upload artifacts for now
All checks were successful
Build
2023-04-11 19:04:48 +00:00
69dea59871 try to upload as release instead
Some checks failed
Build
2023-04-10 21:43:16 +00:00
a21137dcab Revert "undo these things for curiosity"
Some checks failed
Build
This reverts commit 84c7f2a043.
2023-04-10 21:28:09 +00:00
84c7f2a043 undo these things for curiosity
Some checks failed
Build
2023-04-10 21:27:41 +00:00
93aad50f66 Revert "back to upload-artifact@v2"
Some checks failed
Build
This reverts commit 8bfa9fcc48.
2023-04-10 21:18:31 +00:00
8bfa9fcc48 back to upload-artifact@v2
Some checks failed
Build
2023-04-10 21:00:57 +00:00
154662d4cf add ACTIONS_RUNTIME_TOKEN env variable
Some checks failed
Build
2023-04-10 20:15:37 +00:00
d54600c8aa back to cache@v2
Some checks failed
Build
2023-04-10 19:51:26 +00:00
999156146b don't specify ssh creds
Some checks failed
Build
2023-04-10 19:47:29 +00:00
aea0303fb4 back to apt
Some checks are pending
Build
2023-04-10 19:46:11 +00:00
a83640484d try some formatting
Some checks are pending
Build
2023-04-09 20:19:11 +00:00
f552350c06 use apt-get for better output
Some checks are pending
Build
2023-04-09 20:11:43 +00:00
ce26164afb make it safe again
Some checks are pending
Build
2023-04-09 20:10:20 +00:00
eb1d8f38db change ssh access key after this
Some checks failed
Build
2023-04-09 20:04:22 +00:00
95d64d84a8 undo last commit
Some checks are pending
Build
2023-04-09 19:59:07 +00:00
af08714610 back to the roots; try githubs env
Some checks are pending
Build
2023-04-09 19:51:27 +00:00
71cd8ca6ed add ssh-known-hosts for strict host checking
Some checks failed
Build
2023-04-09 19:46:17 +00:00
42205882d7 install ssh too
Some checks failed
Build
2023-04-09 19:39:47 +00:00
c5a27a04ad apt update before installing
Some checks failed
Build
2023-04-09 19:37:32 +00:00
8ee0b58f15 wtf, install node before installing node?
Some checks failed
Build
2023-04-09 19:35:47 +00:00
6e2af44df2 setup node first
Some checks failed
Build
2023-04-09 19:31:40 +00:00
7ea66fa5c4 even more explicit URLs
Some checks failed
Build
2023-04-09 19:30:02 +00:00
09162c7e91 add node setup action
Some checks failed
Build
2023-04-09 19:28:43 +00:00
fa4c9ad355 [FIX!] more explicit repository URLs
Some checks failed
Build
2023-04-09 19:09:56 +00:00
762f3c1feb [FIX?] explicitly use github actions repo
All checks were successful
Build
2023-04-09 19:08:01 +00:00
1f35f407aa [FIX?] use @v3 actions
All checks were successful
Build
2023-04-09 19:05:41 +00:00
360b3e111f [FIX] pass ssh-key to cache too
All checks were successful
Build
2023-04-09 19:01:22 +00:00
0002b86f4b [FIX?]
All checks were successful
Build
2023-04-09 18:55:19 +00:00
e3a231b240 more gitea actions testing
All checks were successful
Build
2023-04-09 18:53:56 +00:00
ce7114cb52 try action version from gitea repository
All checks were successful
Build
2023-04-09 18:37:12 +00:00
85f70974f9 enable usb logging
All checks were successful
Build
2023-04-09 14:11:54 +00:00
664b4b61db [FIX] use correct shorthand modifier code 2023-04-09 13:50:54 +00:00
7f25cebef8 shorter sticky layer 2023-04-09 13:42:06 +00:00
de09bf6581 back to github for building
All checks were successful
Build
2023-04-09 13:37:31 +00:00
172b4c8516 try another token
All checks were successful
Build
2023-04-09 13:32:34 +00:00
7db1a8fc48 use token for auth
All checks were successful
Build
2023-04-09 13:31:10 +00:00
3d33228247 add ctrl+alt modifier
All checks were successful
Build
2023-04-09 12:33:13 +00:00
4 changed files with 44 additions and 127 deletions

View File

@ -1,93 +0,0 @@
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: Install Dependencies
run: |
apt-get update;
apt-get install --yes --no-install-recommends \
nodejs \
zstd \
zip
- name: Checkout
uses: actions/checkout@v3
- name: Hash west modules
id: hash-west
run: |
FILE_PATH=zephyr/west.yml
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
echo "computed hash: $HASH"
- name: Cache west modules
uses: actions/cache@v3
env:
cache-name: cache-zephyr-modules
with:
path: |
modules/
tools/
zephyr/
bootloader/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ steps.hash-west.outputs.hash }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
timeout-minutes: 5
continue-on-error: true
- 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 (Corne Left)
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: Corne Left Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
- name: West Build (Corne Right)
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: Corne Right Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
- name: Zip Artifacts
run: zip firmware.zip corne_left_nice_nano_v2.uf2 corne_right_nice_nano_v2.uf2
- name: Hash west modules
id: hash-west
run: |
FILE_PATH=zephyr/west.yml
FILES=$(find . -name build.yml -o -name west.yml -type f -exec sha256sum \; | sort)
HASH="$(echo -n $FILES | sha256sum | head -c 64)"
echo "hash=$HASH" >> "$GITHUB_OUTPUT"
echo "computed hash: $HASH"
- name: Upload Artifact
uses: actions/upload-artifact@v3
with:
path: firmware.zip
name: firmware.zip

View File

@ -16,7 +16,7 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Cache west modules
uses: actions/cache@v2
uses: https://github.com/actions/cache@v2
env:
cache-name: cache-zephyr-modules
with:
@ -42,30 +42,31 @@ jobs:
run: west build -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_left -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: Corne Left Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
- name: Archive (Corne Left)
uses: actions/upload-artifact@v3
with:
name: firmware
path: corne_left_nice_nano_v2.uf2
# - name: Rename zmk.uf2
# run: cp build/zephyr/zmk.uf2 corne_left_nice_nano_v2.uf2
# - name: Archive (Corne Left)
# uses: https://github.com/actions/upload-artifact@v3
# with:
# name: firmware
# path: corne_left_nice_nano_v2.uf2
- name: West Build (Corne Right)
run: west build --pristine -s zmk/app -b nice_nano_v2 -- -DSHIELD=corne_right -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: Corne Right Kconfig file
run: cat build/zephyr/.config | grep -v "^#" | grep -v "^$"
- name: Rename zmk.uf2
run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
- name: Archive (Corne Right)
uses: actions/upload-artifact@v3
with:
name: firmware
path: corne_right_nice_nano_v2.uf2
# - name: Rename zmk.uf2
# run: cp build/zephyr/zmk.uf2 corne_right_nice_nano_v2.uf2
# - name: Archive (Corne Right)
# uses: https://github.com/actions/upload-artifact@v3
# with:
# name: firmware
# path: corne_right_nice_nano_v2.uf2
# - name: Release
- name: Upload artifacts as release
uses: softprops/action-gh-release@v1
if: startsWith(github.ref, 'refs/tags/')
with:
files: |
corne_left_nice_nano_v2.uf2
corne_right_nice_nano_v2.uf2
# - name: Upload artifacts as release
# uses: https://github.com/softprops/action-gh-release@v1
# if: startsWith(github.ref, 'refs/tags/')
# with:
# files: |
# corne_left_nice_nano_v2.uf2
# corne_right_nice_nano_v2.uf2

View File

@ -9,6 +9,6 @@
CONFIG_ZMK_SLEEP=y
CONFIG_ZMK_IDLE_TIMEOUT=30000
# Sleep timeout to 15 minutes
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=1800000
CONFIG_ZMK_IDLE_SLEEP_TIMEOUT=900000
CONFIG_ZMK_KEYBOARD_NAME="Daimon Scriptor"
CONFIG_ZMK_USB_LOGGING=y

View File

@ -10,7 +10,7 @@
#include <dt-bindings/zmk/outputs.h>
&sl {
release-after-ms = <250>;
release-after-ms = <1000>;
};
&sk {
@ -24,28 +24,37 @@
default_layer {
bindings = <
&kp ESC &kp Q &kp W &kp E &kp R &kp T &kp Y &kp U &kp I &kp O &kp P &kp LBKT
&kp LSHFT &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo 1
&kp LGUI &sl 2 &kp SPACE &kp LC(BSPC) &kp CAPS &kp LALT
&sk CAPS &kp A &kp S &kp D &kp F &kp G &kp H &kp J &kp K &kp L &kp SEMI &kp SQT
&sk LSHFT &kp Z &kp X &kp C &kp V &kp B &kp N &kp M &kp COMMA &kp DOT &kp FSLH &mo 1
&kp LGUI &sk LCTRL &kp SPACE &kp LC(LALT) &sl 2 &sk LALT
>;
};
adjust_layer {
bindings = <
&bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR &none &none &none &none &kp C_PP &kp C_VOL_UP
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &out OUT_BLE &out OUT_USB &none &none &none &kp C_VOL_DN
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &none &none &none &none &kp C_MUTE &kp PAUSE_BREAK
&kp C_MUTE &kp C_VOL_DN &kp C_VOL_UP &kp C_PREV &kp C_NEXT &kp C_PP &bt BT_SEL 0 &bt BT_SEL 1 &bt BT_SEL 2 &bt BT_SEL 3 &bt BT_SEL 4 &bt BT_CLR
&kp F1 &kp F2 &kp F3 &kp F4 &kp F5 &kp F6 &out OUT_BLE &out OUT_USB &none &none &none &none
&kp F7 &kp F8 &kp F9 &kp F10 &kp F11 &kp F12 &tog 3 &none &none &none &none &kp PAUSE_BREAK
&trans &trans &none &none &trans &none
>;
};
neo_layer_4 {
bindings = <
&trans &kp PG_UP &kp BSPC &kp UP &kp DEL &kp PG_DN &none &kp N7 &kp N8 &kp N9 &none &none
&trans &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &none &kp N4 &kp N5 &kp N6 &kp N0 &none
&none &kp PG_UP &kp BSPC &kp UP &kp DEL &kp PG_DN &none &kp N7 &kp N8 &kp N9 &none &none
&none &kp HOME &kp LEFT &kp DOWN &kp RIGHT &kp END &none &kp N4 &kp N5 &kp N6 &kp N0 &none
&trans &kp ESC &kp TAB &kp INSERT &kp ENTER &kp K_UNDO &kp N0 &kp N1 &kp N2 &kp N3 &none &none
&trans &trans &trans &trans &trans &trans
>;
};
gaming_layer {
bindings = <
&kp TAB &kp Q &kp W &kp E &kp R &kp T &none &kp N7 &kp N8 &kp N9 &none &kp C_PP
&kp LSHFT &kp A &kp S &kp D &kp F &kp G &none &kp N4 &kp N5 &kp N6 &kp N0 &kp C_VOL_UP
&kp LCTRL &kp Z &kp X &kp C &kp V &kp B &kp N0 &kp N1 &kp N2 &kp N3 &none &kp C_VOL_DN
&kp LGUI &kp LCTRL &kp SPACE &tog 3 &kp ESC &none
>;
};
};
};