Change everything

-add keymaps for all zmk splergos
-add mappings
-move babel to miryoku/miryoku-zmk-babel.org
-generate only miryoku.dtsi from babel
-move status to status.org
-move docs to readme.org
-change mapping macro names
-add everything to build
This commit is contained in:
Manna Harbour
2021-03-05 17:23:25 +11:00
parent 84c0b28dc1
commit c4394254f6
33 changed files with 601 additions and 511 deletions

View File

@@ -1,11 +1,90 @@
on: [push, pull_request, workflow_dispatch]
name: Build
on:
- push
- pull_request
- workflow_dispatch
jobs:
build:
runs-on: ubuntu-latest
name: Build Test
runs-on: ubuntu-20.04
container:
image: zmkfirmware/zmk-build-arm:2.4
strategy:
fail-fast: false
matrix:
include:
# -board: ahokore
# - shield: bfo9000_left
# board: nice_nano
# - shield: bfo9000_right
# board: nice_nano
- shield: corne_left
board: nice_nano
- shield: corne_right
board: nice_nano
- shield: cradio_left
board: nice_nano
- shield: cradio_right
board: nice_nano
- shield: crbn
board: nice_nano
- shield: eek
board: nice_nano
# -board: ferris
- shield: helix_left
board: nice_nano
- shield: helix_right
board: nice_nano
- shield: iris_left
board: nice_nano
- shield: iris_right
board: nice_nano
- shield: jian_left
board: nice_nano
- shield: jian_right
board: nice_nano
- shield: jorne_left
board: nice_nano
- shield: jorne_right
board: nice_nano
- shield: kyria_left
board: nice_nano
- shield: kyria_right
board: nice_nano
- shield: lily58_left
board: nice_nano
- shield: lily58_right
board: nice_nano
- shield: microdox_left
board: nice_nano
- shield: microdox_right
board: nice_nano
- board: planck_rev6
- shield: sofle_left
board: nice_nano
- shield: sofle_right
board: nice_nano
- shield: splitreus62_left
board: nice_nano
- shield: splitreus62_right
board: nice_nano
steps:
- name: Checkout
uses: actions/checkout@v2
@@ -15,64 +94,48 @@ jobs:
cache-name: cache-zephyr-modules
with:
path: |
bootloader/
modules/
tools/
zephyr/
bootloader/
zmk/
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('manifest-dir/west.yml') }}
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('config/west.yml') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: West Init
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-init
with:
args: 'init "-l config"'
- name: West Update
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-update
with:
args: 'update'
- name: West Config Zephyr Base
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-config
with:
args: 'config "--global zephyr.base-prefer configfile"'
- name: West Zephyr Export
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-zephyr-export
with:
args: 'zephyr-export'
- name: West Build (Corne Left)
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-build-corne-left
with:
args: 'build "-s zmk/app -b nice_nano -- -DSHIELD=corne_left -DZMK_CONFIG=/github/workspace/config"'
- name: Corne DTS File
if: ${{ always() }}
run: cat -n build/zephyr/nice_nano.dts.pre.tmp
- 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.uf2
- name: Archive (Corne Left)
timeout-minutes: 2
continue-on-error: true
- name: Initialize workspace (west init)
run: west init -l config
- name: Update modules (west update)
run: west update
- name: Export Zephyr CMake package (west zephyr-export)
run: west zephyr-export
- name: Prepare variables
id: variables
run: |
if [ -n "${{ matrix.shield }}" ]; then
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}"
ARTIFACT_NAME="${{ matrix.shield }}-${{ matrix.board }}-zmk"
else
SHIELD_ARG=
ARTIFACT_NAME="${{ matrix.board }}-zmk"
fi
echo ::set-output name=shield-arg::${SHIELD_ARG}
echo ::set-output name=artifact-name::${ARTIFACT_NAME}
- name: Build (west build)
run: west build -s zmk/app -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }}
-DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
- name: Generated DTS file
if: always()
run: cat -n build/zephyr/${{ matrix.board }}.dts.pre.tmp
- name: Archive artifacts
uses: actions/upload-artifact@v2
with:
name: firmware
path: corne_left_nice_nano.uf2
- name: West Build (Corne Right)
uses: 'docker://zmkfirmware/zephyr-west-action-arm:latest'
id: west-build-corne-right
with:
args: 'build "--pristine -s zmk/app -b nice_nano -- -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.uf2
- name: Archive (Corne Right)
uses: actions/upload-artifact@v2
with:
name: firmware
path: corne_right_nice_nano.uf2
name: ${{ steps.variables.outputs.artifact-name }}
path: |
build/zephyr/zmk.hex
build/zephyr/zmk.uf2
continue-on-error: true