mirror of
https://github.com/ClaytonWWilson/miryoku_zmk.git
synced 2026-03-10 18:55:04 +00:00
Remove redundant build matrix template
This commit is contained in:
216
.github/workflows/build-matrix-template.yml
vendored
216
.github/workflows/build-matrix-template.yml
vendored
@@ -1,216 +0,0 @@
|
||||
# generated -*- buffer-read-only: t -*-
|
||||
# Copyright 2021 Manna Harbour
|
||||
# https://github.com/manna-harbour/miryoku
|
||||
|
||||
name: 'Build Matrix Template'
|
||||
on:
|
||||
- workflow_dispatch
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: zmkfirmware/zmk-build-arm:2.5
|
||||
strategy:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
shield:
|
||||
# with shield:
|
||||
# - absolem # outboard
|
||||
# - bastyl_left # outboard
|
||||
# - bastyl_right # outboard
|
||||
# - boardsource5x12 # outboard
|
||||
# - contra # outboard
|
||||
# - corne_left
|
||||
# - corne_right
|
||||
# - cradio36_left # outboard
|
||||
# - cradio36_right # outboard
|
||||
# - cradio_left
|
||||
# - cradio_right
|
||||
# - cradios_left # outboard
|
||||
# - cradios_right # outboard
|
||||
# - crbn
|
||||
# - eek
|
||||
# - ergodash_left # outboard
|
||||
# - ergodash_right # outboard
|
||||
# - helix_left
|
||||
# - helix_right
|
||||
# - iris_left
|
||||
# - iris_right
|
||||
# - jian_left
|
||||
# - jian_right
|
||||
# - jorne_left
|
||||
# - jorne_right
|
||||
# - kyria_left
|
||||
# - kyria_right
|
||||
# - levinson_left # outboard
|
||||
# - levinson_right # outboard
|
||||
# - lily58_left
|
||||
# - lily58_right
|
||||
# - microdox_left
|
||||
# - microdox_right
|
||||
# - naked60 # outboard
|
||||
# - pockettype # outboard
|
||||
# - pteron36_left # outboard
|
||||
# - pteron36_right # outboard
|
||||
# - rebound_v4 # outboard
|
||||
# - reviung39 # outboard
|
||||
# - reviung41
|
||||
# - sofle_left
|
||||
# - sofle_right
|
||||
# - sweepv2_left # outboard
|
||||
# - sweepv2_right # outboard
|
||||
# - splitreus62_left
|
||||
# - splitreus62_right
|
||||
# - tbkmini_left # outboard
|
||||
# - tbkmini_right # outboard
|
||||
# - viterbi_left # outboard
|
||||
# - viterbi_right # outboard
|
||||
# without shield:
|
||||
# - ""
|
||||
board:
|
||||
# with shield:
|
||||
# - bluemicro840_v1
|
||||
# - nice_nano
|
||||
# - nice_nano_v2
|
||||
# - nrfmicro_11
|
||||
# - nrfmicro_13
|
||||
# - proton_c
|
||||
# without shield:
|
||||
# - ahokore # outboard
|
||||
# - corne-ish_zen_left # outboard
|
||||
# - corne-ish_zen_right # outboard
|
||||
# - ferris_rev02 # outboard
|
||||
# - planck_rev6
|
||||
# - preonic_rev3 # outboard
|
||||
# - zaphod # outboard
|
||||
alphas:
|
||||
# - default
|
||||
# - colemak
|
||||
# - colemakdhk
|
||||
# - dvorak
|
||||
# - halmak
|
||||
# - workman
|
||||
# - qwerty
|
||||
nav:
|
||||
# - default
|
||||
# - vi
|
||||
# - invertedt # TODO
|
||||
clipboard:
|
||||
# - default
|
||||
# - fun
|
||||
# - mac
|
||||
# - win
|
||||
layers:
|
||||
# - default
|
||||
# - flip # TODO
|
||||
mapping:
|
||||
# - default
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
- name: Process variables
|
||||
id: variables
|
||||
run: |
|
||||
if [ -n "${{ matrix.shield }}" -a "${{ matrix.shield }}" != "default" ]
|
||||
|
||||
then
|
||||
SHIELD_ARG="-DSHIELD=${{ matrix.shield }}"
|
||||
keyboard=${{ matrix.shield }}
|
||||
shield=${{ matrix.shield }}
|
||||
else
|
||||
keyboard=${{ matrix.board }}
|
||||
shield=""
|
||||
fi
|
||||
echo "::set-output name=shield-arg::${SHIELD_ARG}"
|
||||
keyboard=`echo "$keyboard" | sed 's/_\(left\|right\)//'`
|
||||
|
||||
configfile="${GITHUB_WORKSPACE}/miryoku/config.h"
|
||||
echo '// Copyright 2021 Manna Harbour\n// https://github.com/manna-harbour/miryoku' > "$configfile"
|
||||
echo "::set-output name=configfile::$configfile"
|
||||
|
||||
artifact_build_name="miryoku_zmk $shield ${{ matrix.board }}"
|
||||
for option in "alphas_${{ matrix.alphas }}" "nav_${{ matrix.nav }}" "clipboard_${{ matrix.clipboard }}" "layers_${{ matrix.layers }}" "mapping_${{ matrix.mapping }}"
|
||||
do
|
||||
case "$option" in
|
||||
*_ ) ;;
|
||||
*_default ) ;;
|
||||
* )
|
||||
artifact_build_name="$artifact_build_name $option"
|
||||
echo "#define MIRYOKU_"`echo "$option" | tr 'a-z' 'A-Z'` >> "$configfile"
|
||||
;;
|
||||
esac
|
||||
done
|
||||
artifact_build_name=`echo $artifact_build_name | tr ' ' '-'`
|
||||
echo "::set-output name=artifact-build-name::$artifact_build_name"
|
||||
echo "::set-output name=artifact-generic-name::"`echo "$artifact_build_name" | sed 's/_\(left\|right\)//'`
|
||||
echo "::set-output name=artifact-dir::artifacts"
|
||||
|
||||
outboard_file=".github/workflows/outboards/$keyboard"
|
||||
if [ -f "$outboard_file" ]
|
||||
then
|
||||
grep -v '^#' "$outboard_file" >> $GITHUB_ENV
|
||||
fi
|
||||
echo "::set-output name=outboard_dir::outboard"
|
||||
- name: Checkout outboard
|
||||
if: ${{ env.outboard_repository != '' && env.outboard_ref != '' }}
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: ${{ env.outboard_repository }}
|
||||
ref: ${{ env.outboard_ref }}
|
||||
path: ${{ steps.variables.outputs.outboard_dir }}
|
||||
- name: Link outboard
|
||||
if: ${{ env.outboard_from != '' && env.outboard_to != '' }}
|
||||
run: |
|
||||
mkdir -p `dirname "config/${{ env.outboard_to }}"`
|
||||
ln -sr ${{ steps.variables.outputs.outboard_dir }}/${{ env.outboard_from }} config/${{ env.outboard_to }}
|
||||
- name: Generate outboard manifest
|
||||
if: ${{ env.outboard_url_base != '' && env.outboard_revision != '' }}
|
||||
run: |
|
||||
echo "manifest:\n remotes:\n - name: outboard\n url-base: ${{ env.outboard_url_base }}\n projects:\n - name: zmk\n remote: outboard\n revision: ${{ env.outboard_revision }}\n import: app/west.yml\n self:\n path: config" > config/west.yml
|
||||
cat config/west.yml
|
||||
- name: Copy outboard manifest
|
||||
if: ${{ env.outboard_manifest != '' }}
|
||||
run: |
|
||||
cp ${{ steps.variables.outputs.outboard_dir }}/${{ env.outboard_manifest }} config/west.yml
|
||||
cat config/west.yml
|
||||
- name: Cache west modules
|
||||
uses: actions/cache@v2
|
||||
env:
|
||||
cache-name: zephyr
|
||||
with:
|
||||
path: |
|
||||
bootloader/
|
||||
modules/
|
||||
tools/
|
||||
zephyr/
|
||||
zmk/
|
||||
key: ${{ runner.os }}-${{ env.cache-name }}-${{ hashFiles('config/west.yml') }}
|
||||
restore-keys: ${{ runner.os }}-${{ env.cache-name }}
|
||||
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: Build (west build)
|
||||
run: west build -s zmk/app -b ${{ matrix.board }} -- ${{ steps.variables.outputs.shield-arg }} -DZMK_CONFIG="${GITHUB_WORKSPACE}/config"
|
||||
- name: Prepare artifacts
|
||||
run: |
|
||||
mkdir ${{ steps.variables.outputs.artifact-dir }}
|
||||
cp "${{ steps.variables.outputs.configfile }}" "${{ steps.variables.outputs.artifact-dir }}"
|
||||
for extension in "hex" "uf2"
|
||||
do
|
||||
file="build/zephyr/zmk.$extension"
|
||||
if [ -f "$file" ]
|
||||
then
|
||||
cp "$file" "${{ steps.variables.outputs.artifact-dir }}/${{ steps.variables.outputs.artifact-build-name }}.$extension"
|
||||
fi
|
||||
done
|
||||
- name: Archive artifacts
|
||||
uses: actions/upload-artifact@v2
|
||||
with:
|
||||
name: ${{ steps.variables.outputs.artifact-generic-name }}
|
||||
path: ${{ steps.variables.outputs.artifact-dir }}
|
||||
continue-on-error: true
|
||||
@@ -1,98 +0,0 @@
|
||||
# Copyright 2021 Manna Harbour
|
||||
# https://github.com/manna-harbour/miryoku
|
||||
|
||||
name: 'Build Matrix Template'
|
||||
m4_include(include/jobs-build.yml.m4)m4_dnl
|
||||
shield:
|
||||
# with shield:
|
||||
# - absolem # outboard
|
||||
# - bastyl_left # outboard
|
||||
# - bastyl_right # outboard
|
||||
# - boardsource5x12 # outboard
|
||||
# - contra # outboard
|
||||
# - corne_left
|
||||
# - corne_right
|
||||
# - cradio36_left # outboard
|
||||
# - cradio36_right # outboard
|
||||
# - cradio_left
|
||||
# - cradio_right
|
||||
# - cradios_left # outboard
|
||||
# - cradios_right # outboard
|
||||
# - crbn
|
||||
# - eek
|
||||
# - ergodash_left # outboard
|
||||
# - ergodash_right # outboard
|
||||
# - helix_left
|
||||
# - helix_right
|
||||
# - iris_left
|
||||
# - iris_right
|
||||
# - jian_left
|
||||
# - jian_right
|
||||
# - jorne_left
|
||||
# - jorne_right
|
||||
# - kyria_left
|
||||
# - kyria_right
|
||||
# - levinson_left # outboard
|
||||
# - levinson_right # outboard
|
||||
# - lily58_left
|
||||
# - lily58_right
|
||||
# - microdox_left
|
||||
# - microdox_right
|
||||
# - naked60 # outboard
|
||||
# - pockettype # outboard
|
||||
# - pteron36_left # outboard
|
||||
# - pteron36_right # outboard
|
||||
# - rebound_v4 # outboard
|
||||
# - reviung39 # outboard
|
||||
# - reviung41
|
||||
# - sofle_left
|
||||
# - sofle_right
|
||||
# - sweepv2_left # outboard
|
||||
# - sweepv2_right # outboard
|
||||
# - splitreus62_left
|
||||
# - splitreus62_right
|
||||
# - tbkmini_left # outboard
|
||||
# - tbkmini_right # outboard
|
||||
# - viterbi_left # outboard
|
||||
# - viterbi_right # outboard
|
||||
# without shield:
|
||||
# - ""
|
||||
board:
|
||||
# with shield:
|
||||
# - bluemicro840_v1
|
||||
# - nice_nano
|
||||
# - nice_nano_v2
|
||||
# - nrfmicro_11
|
||||
# - nrfmicro_13
|
||||
# - proton_c
|
||||
# without shield:
|
||||
# - ahokore # outboard
|
||||
# - corne-ish_zen_left # outboard
|
||||
# - corne-ish_zen_right # outboard
|
||||
# - ferris_rev02 # outboard
|
||||
# - planck_rev6
|
||||
# - preonic_rev3 # outboard
|
||||
# - zaphod # outboard
|
||||
alphas:
|
||||
# - default
|
||||
# - colemak
|
||||
# - colemakdhk
|
||||
# - dvorak
|
||||
# - halmak
|
||||
# - workman
|
||||
# - qwerty
|
||||
nav:
|
||||
# - default
|
||||
# - vi
|
||||
# - invertedt # TODO
|
||||
clipboard:
|
||||
# - default
|
||||
# - fun
|
||||
# - mac
|
||||
# - win
|
||||
layers:
|
||||
# - default
|
||||
# - flip # TODO
|
||||
mapping:
|
||||
# - default
|
||||
m4_include(include/build-steps.yml.m4)m4_dnl
|
||||
2
.github/workflows/src/makefile
vendored
2
.github/workflows/src/makefile
vendored
@@ -1,7 +1,7 @@
|
||||
# Copyright 2021 Manna Harbour
|
||||
# https://github.com/manna-harbour/miryoku
|
||||
|
||||
all: ../build-example-corne-nice_nano.yml ../build-example-tbkmini-nice_nano_v2.yml ../build-inputs.yml ../build-matrix-template.yml ../test-boards.yml ../test-build.yml ../test-configs.yml ../test-controllers.yml ../test-shields.yml
|
||||
all: ../build-example-corne-nice_nano.yml ../build-example-tbkmini-nice_nano_v2.yml ../build-inputs.yml ../test-boards.yml ../test-build.yml ../test-configs.yml ../test-controllers.yml ../test-shields.yml
|
||||
|
||||
../%.yml: %.yml.m4 include/* makefile
|
||||
m4 -P include/init.yml.m4 $< > $@
|
||||
|
||||
Reference in New Issue
Block a user